From 21e8bb32b84ae58dfdab768657c21bad0f72db43 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 6 Aug 2024 09:32:17 +0700 Subject: [PATCH] Fix `clippy::needless_borrows_for_generic_args` lints --- tests/graphical.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()), };