From 7c256234df06bcc0082d4df111103af44e2e5653 Mon Sep 17 00:00:00 2001 From: cscherrNT Date: Tue, 25 Jun 2024 14:39:20 +0000 Subject: [PATCH] automatic cargo CI changes --- members/sqlite-demo/src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/members/sqlite-demo/src/main.rs b/members/sqlite-demo/src/main.rs index a140b46..1349f6a 100644 --- a/members/sqlite-demo/src/main.rs +++ b/members/sqlite-demo/src/main.rs @@ -294,13 +294,13 @@ fn main() -> anyhow::Result<()> { let _ = stdin.lock().read_line(&mut buf); buf = buf.trim().to_string(); buf = buf.to_uppercase().to_string(); - if buf.starts_with("A") { + if buf.starts_with('A') { interactive_add_cat(&conn)?; - } else if buf.starts_with("F") { + } else if buf.starts_with('F') { interactive_find_cat(&conn)?; - } else if buf.starts_with("P") { + } else if buf.starts_with('P') { print_all_data(&conn)?; - } else if buf.starts_with("D") { + } else if buf.starts_with('D') { let words: Vec<&str> = buf.split(' ').collect(); dbg!(&words); if words.len() < 2 { @@ -336,7 +336,7 @@ fn main() -> anyhow::Result<()> { } } } - } else if buf.starts_with("E") { + } else if buf.starts_with('E') { println!("Goodbye"); break; }