Fix clippy warnings

This commit is contained in:
Billy Chan 2021-10-27 15:23:21 +08:00
parent fe64d53b45
commit e21af53374
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -43,7 +43,7 @@ where
}; };
let stmt = Type::create() let stmt = Type::create()
.as_enum(Alias::new(name)) .as_enum(Alias::new(name))
.values(values.into_iter().map(|val| Alias::new(val.as_str()))) .values(values.iter().map(|val| Alias::new(val.as_str())))
.to_owned(); .to_owned();
vec.push(stmt); vec.push(stmt);
} }