build.rs: silence clippy warnings

This commit is contained in:
Jan Scheer 2021-10-18 23:47:09 +02:00
parent 3300d80e3f
commit 7c5395a27a
No known key found for this signature in database
GPG key ID: C62AD4C29E2B9828

View file

@ -46,6 +46,8 @@ pub fn main() {
"type UtilityMap<T> = HashMap<&'static str, (fn(T) -> i32, fn() -> App<'static, 'static>)>;\n\
\n\
fn util_map<T: uucore::Args>() -> UtilityMap<T> {\n\
\t#[allow(unused_mut)]\n\
\t#[allow(clippy::let_and_return)]\n\
\tlet mut map = UtilityMap::new();\n\
"
.as_bytes(),