diff --git a/src/main.rs b/src/main.rs index 9dbc2bb..51b22d5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,7 @@ fn process( ) -> usize { let ops: Vec = line.split_whitespace().map(String::from).collect(); - match ops.get(0).map(String::as_str) { + match ops.first().map(String::as_str) { Some("INP") => { let mut s = String::new(); io::stdin().read_line(&mut s).unwrap();