File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ unsafe impl Send for IConv {}
115115
116116impl IConv {
117117 #[ doc( alias = "g_iconv_open" ) ]
118+ #[ allow( clippy:: unnecessary_lazy_evaluations) ]
118119 pub fn new ( to_codeset : & str , from_codeset : & str ) -> Option < Self > {
119120 let iconv = unsafe {
120121 ffi:: g_iconv_open ( to_codeset. to_glib_none ( ) . 0 , from_codeset. to_glib_none ( ) . 0 )
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ impl<'a> LogField<'a> {
417417 /// Retrieves the the user data value from a field created with [`Self::new_user_data`].
418418 /// Returns `None` if the field was created with [`Self::new`].
419419 pub fn user_data ( & self ) -> Option < usize > {
420- ( self . 0 . length == 0 ) . then ( || self . 0 . value as usize )
420+ ( self . 0 . length == 0 ) . then_some ( self . 0 . value as usize )
421421 }
422422}
423423
You can’t perform that action at this time.
0 commit comments