mirror of https://github.com/zkat/miette.git
Fix `clippy::needless_borrows_for_generic_args` lints
This commit is contained in:
parent
a279561d9b
commit
21e8bb32b8
|
|
@ -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()),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue