Skip to content

Commit 7db15ba

Browse files
committed
refactor(clippy): apply lint fixes
1 parent 98203c5 commit 7db15ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/effects/ui.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub struct Ui<'a> {
2020
pub ctx: &'a Context,
2121
}
2222

23-
impl<'a> Ui<'a> {
23+
impl Ui<'_> {
2424
pub fn print_command_header(&self, msg: &str) {
2525
info!("{}", format!(" {msg} ").on_blue().black());
2626
}

src/instance.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ impl Instance {
139139
/// Does this instance belong to a `WithRange` semver group and which prefers
140140
/// a semver range other than that used by the given specifier?
141141
pub fn must_match_preferred_semver_range_which_differs_to(&self, other_specifier: &Specifier) -> bool {
142-
other_specifier.get_semver_range().map_or(false, |range_of_other_specifier| {
143-
self.must_match_preferred_semver_range_which_is_not(&range_of_other_specifier)
144-
})
142+
other_specifier
143+
.get_semver_range()
144+
.is_some_and(|range_of_other_specifier| self.must_match_preferred_semver_range_which_is_not(&range_of_other_specifier))
145145
}
146146

147147
/// Is the given semver range the preferred semver range for this instance?

0 commit comments

Comments
 (0)