Removed extra to_string() call

This commit is contained in:
Benjamyn Love 2024-03-09 21:59:16 +11:00
parent 076113a359
commit 0d5c0d668e

View File

@ -112,6 +112,6 @@ impl Config {
let mut file = File::open(file_path).unwrap(); let mut file = File::open(file_path).unwrap();
let mut contents = String::new(); let mut contents = String::new();
file.read_to_string(&mut contents).unwrap(); file.read_to_string(&mut contents).unwrap();
contents.to_string() contents
} }
} }