File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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?
You can’t perform that action at this time.
0 commit comments