File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ where
168168 state. ellipsized . update ( text:: Text {
169169 content : & format ! (
170170 "{}… " ,
171- & self . fragment[ ..offset]
171+ self . fragment[ ..offset]
172172 . trim_end_matches( |s: char | !s. is_alphanumeric( ) )
173173 ) ,
174174 bounds,
Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ pub(crate) fn col_device<'a>(
345345 . push (
346346 Row :: new ( )
347347 . spacing ( 10 )
348- . push ( Text :: new ( format ! ( " {}" , & cs_info ) ) )
348+ . push ( Text :: new ( format ! ( " {cs_info}" ) ) )
349349 . push ( get_info_tooltip (
350350 Column :: new ( )
351351 . spacing ( 10 )
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ fn scale_factor_slider<'a>(
196196 let scale_factor = scale_factor_str. parse ( ) . unwrap_or ( 1.0 ) ;
197197 Message :: ChangeScaleFactor ( scale_factor)
198198 } )
199- . step ( 0.01 )
199+ . step ( 0.01_f32 )
200200 . width ( slider_width) ,
201201 )
202202 . push ( Space :: new ( ) . height ( Length :: Fill ) ) ,
You can’t perform that action at this time.
0 commit comments