mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
fix the fix
This commit is contained in:
parent
a3e26b38bd
commit
718bea8696
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue