unwrapping presents
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
pub fn next(n: Option<i32>) -> Result<(), std::io::Error> {
|
||||
let n = n.unwrap_or(1);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
pub fn prev(n: Option<i32>) -> Result<(), std::io::Error> {
|
||||
let n = n.unwrap_or(1);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user