Merge branch 'master' of https://git.cscherr.de/PlexSheep/rs-basic
cargo devel CI / cargo CI (push) Successful in 2m39s
Details
cargo devel CI / cargo CI (push) Successful in 2m39s
Details
This commit is contained in:
commit
337f43a46b
|
@ -296,13 +296,13 @@ fn main() -> anyhow::Result<()> {
|
||||||
let _ = stdin.lock().read_line(&mut buf);
|
let _ = stdin.lock().read_line(&mut buf);
|
||||||
buf = buf.trim().to_string();
|
buf = buf.trim().to_string();
|
||||||
buf = buf.to_uppercase().to_string();
|
buf = buf.to_uppercase().to_string();
|
||||||
if buf.starts_with("A") {
|
if buf.starts_with('A') {
|
||||||
interactive_add_cat(&conn)?;
|
interactive_add_cat(&conn)?;
|
||||||
} else if buf.starts_with("F") {
|
} else if buf.starts_with('F') {
|
||||||
interactive_find_cat(&conn)?;
|
interactive_find_cat(&conn)?;
|
||||||
} else if buf.starts_with("P") {
|
} else if buf.starts_with('P') {
|
||||||
print_all_data(&conn)?;
|
print_all_data(&conn)?;
|
||||||
} else if buf.starts_with("D") {
|
} else if buf.starts_with('D') {
|
||||||
let words: Vec<&str> = buf.split(' ').collect();
|
let words: Vec<&str> = buf.split(' ').collect();
|
||||||
dbg!(&words);
|
dbg!(&words);
|
||||||
if words.len() < 2 {
|
if words.len() < 2 {
|
||||||
|
@ -378,7 +378,7 @@ fn main() -> anyhow::Result<()> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if buf.starts_with("E") {
|
} else if buf.starts_with('E') {
|
||||||
println!("Goodbye");
|
println!("Goodbye");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue