From 2e93fd24e78ed626f90675dde9828883e5a9ea44 Mon Sep 17 00:00:00 2001 From: postscriptum Date: Tue, 1 Jul 2025 22:52:06 +0300 Subject: [PATCH] apply clippy, add comments --- src/nex.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nex.rs b/src/nex.rs index 99c4db6..0bbc7f3 100644 --- a/src/nex.rs +++ b/src/nex.rs @@ -44,6 +44,10 @@ impl Nex { }) } + // @TODO: This function requires the following improvements: + // * validate attachments before updating + // * apply the post time to the files + /// Update destination with given data (typically received from Snac) pub fn sync( &self, name: &str, @@ -136,7 +140,7 @@ impl Nex { // write the data p.push( published - .format(&self.filename.trim_matches(std::path::MAIN_SEPARATOR)) + .format(self.filename.trim_matches(std::path::MAIN_SEPARATOR)) .to_string(), );