diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2021-03-29 22:44:15 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2021-03-30 09:59:12 +0200 |
commit | 9232cafb6678160c3fe5154a7619a5e65c037a2b (patch) | |
tree | 42e47decedfc06b8c8ed3b5dc9fa03a9744c2401 /askama_shared | |
parent | c0e01318ac851641a266584ef6f24f4c61c0f006 (diff) | |
download | askama-9232cafb6678160c3fe5154a7619a5e65c037a2b.tar.gz askama-9232cafb6678160c3fe5154a7619a5e65c037a2b.tar.bz2 askama-9232cafb6678160c3fe5154a7619a5e65c037a2b.zip |
askama_tide: suppress clippy::from-over-into lint
Diffstat (limited to 'askama_shared')
-rw-r--r-- | askama_shared/src/generator.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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))?; |