summaryrefslogtreecommitdiffstats
path: root/src/commands/build.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-13 09:57:07 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-01-15 23:21:39 +0100
commita872f147e7b69bbc26ed41155d5f6820d28e4445 (patch)
treedf32940d73f607918e78f0acbd9aab53531639cd /src/commands/build.rs
parenta6dbffa338d49cd676f752cd50f44d8ebc015a07 (diff)
Fix clippy: useless use of `format!`
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/commands/build.rs')
-rw-r--r--src/commands/build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/build.rs b/src/commands/build.rs
index ac0765f..7895300 100644
--- a/src/commands/build.rs
+++ b/src/commands/build.rs
@@ -334,7 +334,7 @@ pub async fn build(repo_root: &Path,
}
Ok(format!("#BUTIDO:PHASE:{}", p).bright_black())
},
- LogItem::State(Ok(())) => Ok(format!("#BUTIDO:STATE:OK").green()),
+ LogItem::State(Ok(())) => Ok("#BUTIDO:STATE:OK".to_string().green()),
LogItem::State(Err(s)) => {
error_catched = true;
Ok(format!("#BUTIDO:STATE:ERR:{}", s).red())