File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ pub struct TextEditor {
77 font_size : f32 ,
88 show_whitespace : bool ,
99 wrap_lines : bool ,
10- char_width_cache : std:: collections:: HashMap < char , f32 > ,
1110 error_cache : std:: collections:: HashMap < usize , WordCheck > ,
1211 last_analysis : Option < DocumentAnalysis > ,
1312}
@@ -25,7 +24,6 @@ impl TextEditor {
2524 font_size : 14.0 ,
2625 show_whitespace : false ,
2726 wrap_lines : true ,
28- char_width_cache : std:: collections:: HashMap :: new ( ) ,
2927 error_cache : std:: collections:: HashMap :: new ( ) ,
3028 last_analysis : None ,
3129 }
Original file line number Diff line number Diff line change @@ -13,15 +13,13 @@ fn main() -> Result<(), eframe::Error> {
1313 . with_icon (
1414 // Load icon from assets
1515 eframe:: icon_data:: from_png_bytes ( & include_bytes ! ( "../assets/icons/icon.png" ) [ ..] )
16- . unwrap_or_else ( || {
16+ . unwrap_or_else ( |_e | {
1717 // Fallback to a simple icon if file not found
1818 eprintln ! ( "Warning: Could not load icon.png" ) ;
19- eframe:: icon_data:: from_png_bytes ( & include_bytes ! ( "../assets/icons/icon.png" ) [ .. ] )
19+ eframe:: icon_data:: from_png_bytes ( & [ ] )
2020 . unwrap_or_default ( )
2121 } )
2222 ) ,
23- persist_window : true , // Save window position/size
24- persist_egui_memory : true , // Save UI state
2523 centered : true ,
2624 ..Default :: default ( )
2725 } ;
@@ -31,7 +29,7 @@ fn main() -> Result<(), eframe::Error> {
3129 options,
3230 Box :: new ( |cc| {
3331 // Restore previous state if available
34- let storage = cc. storage . unwrap ( ) ;
32+ let _storage = cc. storage . unwrap ( ) ;
3533
3634 // Configure visuals with default dark theme
3735 cc. egui_ctx . set_visuals ( egui:: Visuals :: dark ( ) ) ;
You can’t perform that action at this time.
0 commit comments