Skip to content

Commit 561a375

Browse files
committed
updated test4
1 parent 237290b commit 561a375

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/editor.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/main.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)