prefer-maybe Prefer the maybe operator over manual propagation Explicit branching that immediately propagates a Result error or nullish value repeats the behavior of the maybe operator. Instead, you SHOULD use the maybe operator to propagate absence or failure. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function value(result: Result): Result { const value = match (result) { Ok { value } => value Err { error } => return Result.err(error) }; return Result.ok(value); } Accepted function value(result: Result): Result { const value = result?; return Result.ok(value); } Prior art - Clippy ยท questionmark language/linter/src/rules/style/prefermaybe.rs:8