|
|
@ -3,7 +3,6 @@ use crate::encoder; |
|
|
|
use crate::git; |
|
|
|
use crate::git; |
|
|
|
|
|
|
|
|
|
|
|
use encoder::Encoder; |
|
|
|
use encoder::Encoder; |
|
|
|
use git::Git; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use std::collections::HashSet; |
|
|
|
use std::collections::HashSet; |
|
|
|
use std::hash::{Hash, Hasher}; |
|
|
|
use std::hash::{Hash, Hasher}; |
|
|
@ -202,7 +201,7 @@ impl Storage { |
|
|
|
let content = self.encoder.encrypt(&item.content)?; |
|
|
|
let content = self.encoder.encrypt(&item.content)?; |
|
|
|
writeln!(file, "{}", content)?; |
|
|
|
writeln!(file, "{}", content)?; |
|
|
|
} |
|
|
|
} |
|
|
|
// TODO: run git commit
|
|
|
|
git::Git::sync()?; |
|
|
|
Ok(()) |
|
|
|
Ok(()) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|