summary refs log tree commit diff stats
path: root/src/posts.rs
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2020-05-26 23:47:52 -0400
committerBen Morrison <ben@gbmor.dev>2020-05-26 23:54:20 -0400
commit99c5537622344ecba5a4c7d23a9bc227d9bd7fe3 (patch)
treee5d75ac91f75ebdef6e076825fbfe23e8fb1557c /src/posts.rs
parent896f987f2705d1c5152d6c0741c377e3612f048a (diff)
downloadclinte-99c5537622344ecba5a4c7d23a9bc227d9bd7fe3.tar.gz
post ID can be specified as an argument. if absent, user will be prompted
Diffstat (limited to 'src/posts.rs')
-rw-r--r--src/posts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posts.rs b/src/posts.rs
index 76a5187..781ad9d 100644
--- a/src/posts.rs
+++ b/src/posts.rs
@@ -186,6 +186,7 @@ pub fn delete_handler(db: &db::Conn, id: u32) -> error::Result<()> {
         println!("ID of the post to delete?");
         let mut id_num_in = String::new();
         io::stdin().read_line(&mut id_num_in)?;
+        println!();
         id_num_in.trim().parse()?
     } else {
         id
@@ -207,7 +208,6 @@ pub fn delete_handler(db: &db::Conn, id: u32) -> error::Result<()> {
     }
 
     exec_stmt_no_params(&mut del_stmt)?;
-    println!();
     Ok(())
 }