Fix `clippy::needless_borrows_for_generic_args` lints

This commit is contained in:
Bruce Mitchener 2024-08-06 09:32:17 +07:00
parent a279561d9b
commit 21e8bb32b8
1 changed files with 2 additions and 2 deletions

View File

@ -2000,10 +2000,10 @@ fn syntax_highlighter_on_real_file() {
// SourceSpan constants for column and length // SourceSpan constants for column and length
const CO: usize = 28; const CO: usize = 28;
const LEN: usize = 27; 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 offset = miette::SourceOffset::from_location(&file_src, line, CO);
let err = Test { let err = Test {
src: NamedSource::new(&filename, file_src.clone()), src: NamedSource::new(filename, file_src.clone()),
src_span: SourceSpan::new(offset, LEN.into()), src_span: SourceSpan::new(offset, LEN.into()),
}; };