diff options
Diffstat (limited to 'src/posts.rs')
-rw-r--r-- | src/posts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posts.rs b/src/posts.rs index c44e0f5..0de3d52 100644 --- a/src/posts.rs +++ b/src/posts.rs @@ -83,6 +83,7 @@ pub fn display() -> error::Result<()> { .unwrap_or_else(|_| 80); let all = db::Posts::get_all(db::PATH); + all.hash()?; let mut postvec = Vec::new(); all.posts().iter().enumerate().for_each(|(id, post)| { @@ -90,7 +91,6 @@ pub fn display() -> error::Result<()> { .body .trim() .chars() - .into_iter() .enumerate() .map(|(i, e)| { let i = i + 1; |