mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-04-01 21:55:27 +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(
|
pub fn sync(
|
||||||
&self,
|
&self,
|
||||||
name: &str,
|
name: &str,
|
||||||
|
|
@ -136,7 +140,7 @@ impl Nex {
|
||||||
// write the data
|
// write the data
|
||||||
p.push(
|
p.push(
|
||||||
published
|
published
|
||||||
.format(&self.filename.trim_matches(std::path::MAIN_SEPARATOR))
|
.format(self.filename.trim_matches(std::path::MAIN_SEPARATOR))
|
||||||
.to_string(),
|
.to_string(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue