mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-03-31 21:25:28 +00:00
remove deprecated members
This commit is contained in:
parent
d01c109f22
commit
037a5bfe74
1 changed files with 3 additions and 4 deletions
|
|
@ -96,19 +96,18 @@ fn sync(snac: &Snac, nex: &Nex) -> Result<Response> {
|
|||
(post.published, post.updated),
|
||||
)?;
|
||||
use nex::response::change::Change;
|
||||
let f = ""; //response.file.to_string_lossy();
|
||||
match response.change {
|
||||
Change::Created => {
|
||||
r.created += 1;
|
||||
println!("\t\t\tcreate new post file `{f}`.")
|
||||
println!("\t\t\tcreate new post file.")
|
||||
}
|
||||
Change::Ignored => {
|
||||
r.ignored += 1;
|
||||
println!("\t\t\tpost file `{f}` is up to date.")
|
||||
println!("\t\t\tpost file is up to date.")
|
||||
}
|
||||
Change::Updated => {
|
||||
r.updated += 1;
|
||||
println!("\t\t\tpost file `{f}` update with new content.")
|
||||
println!("\t\t\tpost file update with new content.")
|
||||
}
|
||||
}
|
||||
if let Some(ref mut k) = keep
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue