- Removed notes
- Removed superfluous uses of `where`
This commit is contained in:
2023-05-23 18:39:45 +01:00
parent 8bb82b8ead
commit e99ade92ba
63 changed files with 76 additions and 1973 deletions

View File

@@ -10,7 +10,7 @@ pub fn prompt<T: Display, E: Display>(
stdout().lock().flush().unwrap();
let mut input = String::with_capacity(100);
stdin().lock().read_line(&mut input).unwrap();
if input.len() == 0 {return default}
if input.is_empty() {return default}
match try_cast(input) {
Ok(t) => return t,
Err(e) => println!("Error: {e}")