1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Some clippy fixes

This commit is contained in:
Emil Ernerfeldt
2024-03-22 12:33:35 +01:00
parent b7ec3fa1e3
commit 20b0637d42
2 changed files with 5 additions and 8 deletions

View File

@@ -99,11 +99,12 @@ impl crate::Storage for FileStorage {
join_handle.join().ok();
}
match std::thread::Builder::new()
let result = std::thread::Builder::new()
.name("eframe_persist".to_owned())
.spawn(move || {
save_to_disk(&file_path, &kv);
}) {
});
match result {
Ok(join_handle) => {
self.last_save_join_handle = Some(join_handle);
}