@@ -2567,7 +2567,7 @@ impl FileDialog {
25672567 // Calc available width for the file name and include a small margin
25682568 let available_width = ui. available_width ( ) - 10.0 ;
25692569
2570- let text = Self :: truncate_date ( ui, & created, available_width) ;
2570+ let text = Self :: truncate_date ( ui, created, available_width) ;
25712571
25722572 ui. add ( egui:: Label :: new ( text) . selectable ( false ) ) ;
25732573 } else {
@@ -2580,7 +2580,7 @@ impl FileDialog {
25802580 // Calc available width for the file name and include a small margin
25812581 let available_width = ui. available_width ( ) - 10.0 ;
25822582
2583- let text = Self :: truncate_date ( ui, & last_modified, available_width) ;
2583+ let text = Self :: truncate_date ( ui, last_modified, available_width) ;
25842584
25852585 ui. add ( egui:: Label :: new ( text) . selectable ( false ) ) ;
25862586 } else {
@@ -2741,8 +2741,8 @@ impl FileDialog {
27412741 width
27422742 }
27432743
2744- fn truncate_date ( ui : & egui:: Ui , date : & SystemTime , max_length : f32 ) -> String {
2745- let date: DateTime < Local > = ( * date) . into ( ) ;
2744+ fn truncate_date ( ui : & egui:: Ui , date : SystemTime , max_length : f32 ) -> String {
2745+ let date: DateTime < Local > = date. into ( ) ;
27462746 let today = Local :: now ( ) . date_naive ( ) ; // NaiveDate for today
27472747 let yesterday = today. pred_opt ( ) . map_or ( today, |day| day) ; // NaiveDate for yesterday
27482748
0 commit comments