79448535

Date: 2025-02-18 14:16:35
Score: 1.5
Natty:
Report link

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);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 蔡元瑞