From 9232cafb6678160c3fe5154a7619a5e65c037a2b Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 29 Mar 2021 22:44:15 +0200 Subject: askama_tide: suppress clippy::from-over-into lint --- askama_shared/src/generator.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'askama_shared/src/generator.rs') diff --git a/askama_shared/src/generator.rs b/askama_shared/src/generator.rs index 3ce2f2d..e6a890e 100644 --- a/askama_shared/src/generator.rs +++ b/askama_shared/src/generator.rs @@ -344,6 +344,8 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> { buf.writeln(&format!("::askama_tide::try_into_body(&self, {:?})", &ext))?; buf.writeln("}")?; buf.writeln("}")?; + + buf.writeln("#[allow(clippy::from_over_into)]")?; self.write_header(buf, "Into<::askama_tide::tide::Response>", None)?; buf.writeln("fn into(self) -> ::askama_tide::tide::Response {")?; buf.writeln(&format!("::askama_tide::into_response(&self, {:?})", ext))?; -- cgit