diff --git a/tests/graphical.rs b/tests/graphical.rs index c6b5e1a..2b29f15 100644 --- a/tests/graphical.rs +++ b/tests/graphical.rs @@ -2000,10 +2000,10 @@ fn syntax_highlighter_on_real_file() { // SourceSpan constants for column and length const CO: usize = 28; const LEN: usize = 27; - let file_src = std::fs::read_to_string(&filename).unwrap(); + let file_src = std::fs::read_to_string(filename).unwrap(); let offset = miette::SourceOffset::from_location(&file_src, line, CO); let err = Test { - src: NamedSource::new(&filename, file_src.clone()), + src: NamedSource::new(filename, file_src.clone()), src_span: SourceSpan::new(offset, LEN.into()), };