Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CI satisfaction (then_some() -> then())
  • Loading branch information
agryaznov committed Apr 22, 2022
commit a375d283b42b0981e9bac6692fb544b95d6c444b
2 changes: 1 addition & 1 deletion crates/env/src/engine/on_chain/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl ReturnCode {
/// Returns Some(val) for underlying `u32` val if it is less than SENTINEL.
/// Otherwise returns None.
pub fn into_option_u32(self) -> Option<u32> {
(self.0 < SENTINEL).then_some(self.0)
(self.0 < SENTINEL).then(|| self.0)
}
}

Expand Down