There is an identity function in Rust's standard library, it can save you from writing simple closures.
let inner_value = foo(10).unwrap_or_else(std::convert::identity);