aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-07-09 13:12:00 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-07-09 13:12:00 +0200
commit019d08f3441c9e499977d583bb0f8383aff50d4b (patch)
tree1720d6386d39366ddc9f7d321e849350c3bd9c7b /src/gui
parent8d6b55ebed2bda4705525004863055e99e72da83 (diff)
introduce some minor optimizations
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/mod.rs b/src/gui/mod.rs
index 389fdb6..52cf8a7 100644
--- a/src/gui/mod.rs
+++ b/src/gui/mod.rs
@@ -83,7 +83,7 @@ async fn load_file() -> Index {
let file = file.unwrap();
let file = file.to_str();
let file = file.unwrap();
- Index::from_file(file.to_string())
+ Index::from_file(&file.to_string())
}
async fn generate() -> Index {