aboutsummaryrefslogtreecommitdiff
path: root/azalea-language/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-08 19:02:01 -0500
committermat <github@matdoes.dev>2022-05-08 19:02:01 -0500
commit718bea869679a73a256edcb1a1349625218d2e34 (patch)
tree8090e15480d722a50f71133072c96a1fac331d93 /azalea-language/src
parenta3e26b38bd147efea16d592536aaece37e3e2741 (diff)
downloadazalea-drasl-718bea869679a73a256edcb1a1349625218d2e34.tar.xz
fix the fix
Diffstat (limited to 'azalea-language/src')
-rw-r--r--azalea-language/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-language/src/lib.rs b/azalea-language/src/lib.rs
index 7aa91405..c0ac4c4f 100644
--- a/azalea-language/src/lib.rs
+++ b/azalea-language/src/lib.rs
@@ -1,6 +1,6 @@
use lazy_static::lazy_static;
+use std::io::Read;
use std::{collections::HashMap, fs::File};
-
// use tokio::fs::File;
// pub struct Language {
@@ -29,7 +29,7 @@ use std::{collections::HashMap, fs::File};
// The code above is kept in case I come up with a better solution
lazy_static! {
- pub static ref STORAGE: HashMap<String, String> = serde_json::from_str({
+ pub static ref STORAGE: HashMap<String, String> = serde_json::from_str(&{
let mut file = File::open("en_us.json").unwrap();
let mut contents = String::new();
file.read_to_string(&mut contents).unwrap();