manual-unwrap-or-default Prefer unwrapOrDefault over equivalent Result pattern matching Branching on a Result to select its successful payload or the payload type's default manually unwraps the Result. Instead, you SHOULD use unwrapOrDefault to state the defaulting operation directly. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function value(result: Result): T { return match (result) { Ok { value } => value Err { error: _ } => T.default() }; } Accepted function value(result: Result): T { return result.unwrapOrDefault(); } Prior art - Clippy ยท manualunwrapordefault language/linter/src/rules/style/manualunwrapordefault.rs:8