Skip to content

Commit

Permalink
Fix clippy::unnecessary_lazy_evaluations lint
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored and CensoredUsername committed Nov 18, 2024
1 parent e9d62c8 commit 95fca78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl LabelRegistry {

/// Returns the offset at which the dynamic label `id` was defined, if one was defined.
pub fn resolve_dynamic(&self, id: DynamicLabel) -> Result<AssemblyOffset, DynasmError> {
self.dynamic_labels.get(id.0).and_then(|&e| e).ok_or_else(|| DynasmError::UnknownLabel(LabelKind::Dynamic(id)))
self.dynamic_labels.get(id.0).and_then(|&e| e).ok_or(DynasmError::UnknownLabel(LabelKind::Dynamic(id)))
}

/// Returns the offset at which the global label `label` was defined, if one was defined.
Expand Down

0 comments on commit 95fca78

Please sign in to comment.