Skip to content

Commit 9b882b4

Browse files
committed
Refactor : Useless use of format!
1 parent a6ea458 commit 9b882b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn show_next_window(siv: &mut Cursive, str: &str) {
3838
siv.pop_layer();
3939

4040
let contents = fs::read_to_string(str).expect("Should have been able to read the file");
41-
let text = format!("{}", contents);
41+
let text = contents;
4242

4343
siv.add_layer(Dialog::around(TextView::new(text)).button("Quit", |s| s.quit()));
4444
}

0 commit comments

Comments
 (0)