Skip to content

Commit

Permalink
Fix warnings on wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
maddymakesgames committed Mar 29, 2024
1 parent 59421f3 commit e36e719
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions gui/src/main_menu.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
use std::{
ffi::OsString,
io::{BufReader, Cursor},
sync::Arc,
};
use std::{io::Cursor, sync::Arc};

use celeste_rs::saves::SaveData;
use eframe::egui::{TopBottomPanel, Ui};
Expand Down Expand Up @@ -76,6 +72,8 @@ impl MainMenu {

#[cfg(not(target_family = "wasm"))]
if ui.button("Load Celeste Save Folder").clicked() {
use std::{ffi::OsString, io::BufReader};

use std::fs::{read_dir, OpenOptions};
let file_dialogue = AsyncFileDialog::new()
.set_title("Celeste Save Folder")
Expand All @@ -100,7 +98,6 @@ impl MainMenu {
}
}


if entry.path().extension() != Some(&OsString::from("celeste")) {
continue;
}
Expand Down

0 comments on commit e36e719

Please sign in to comment.