mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-03-31 21:25:28 +00:00
apply clippy, add comments
This commit is contained in:
parent
5f667f9e3d
commit
2e93fd24e7
1 changed files with 5 additions and 1 deletions
|
|
@ -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(),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue