Suppress some clippy warning.
Clippy is the standard Rust linter. This commit suppresses some of the
warnings in the generated code that are difficult to avoid when
automatically generating code.
@@ -154,6 +154,13 @@ class Module(object):
self.trait_out = Output()
self.namespace = outer_module.namespace
+ self.out("#![allow(clippy::unreadable_literal)]")
+ self.out("#![allow(clippy::too_many_arguments)]")
+ self.out("#![allow(clippy::needless_lifetimes)]")
+ self.out("#![allow(clippy::identity_op)]")
+ self.out("#![allow(clippy::trivially_copy_pass_by_ref)]")
+ self.out("#![allow(clippy::eq_op)]")
+ self.out("#![allow(clippy::erasing_op)]")
self.out("use std::convert::TryFrom;")
self.out("#[allow(unused_imports)]")
self.out("use std::convert::TryInto;")
