Skip to content

Commit 24fbe7d

Browse files
committed
fix(wasm-sdk): use is_some_and instead of map_or to satisfy clippy
Clippy 1.92 treats unnecessary_map_or as a warning, which CI promotes to error via -D warnings.
1 parent 466c825 commit 24fbe7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/wasm-sdk/src/state_transitions/document.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ async fn build_document_create_or_replace_transition(
11311131

11321132
let transition = if document
11331133
.revision()
1134-
.map_or(false, |rev| rev != INITIAL_REVISION)
1134+
.is_some_and(|rev| rev != INITIAL_REVISION)
11351135
{
11361136
BatchTransition::new_document_replacement_transition_from_document(
11371137
document.clone(),

0 commit comments

Comments
 (0)