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