style: fix clippy warnings

This commit is contained in:
Dmitriy Pleshevskiy 2021-11-09 01:11:35 +03:00
parent 58a8ba600f
commit 6ec2462def
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ fn fill_env_prefix(prefix: String) -> Box<dyn Fn(Namespace) -> Namespace> {
Box::new(move |mut ns| {
let env_prefix = match &ns.env_prefix {
None => {
let env_prefix = format!("{}{}_", prefix, ns.name.clone().to_string());
let env_prefix = format!("{}{}_", prefix, ns.name.clone());
ns.env_prefix = Some(env_prefix.clone());
env_prefix
}