summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index 8ac99b7..21784c5 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -163,9 +163,9 @@ impl Config {
Some(role) => {
let output = format!("{}>> {}", role.name, role.prompt.trim());
self.role = Some(role);
- format!("{}\n", output.trim())
+ output
}
- None => "Error: Unknown role\n".into(),
+ None => "Error: Unknown role".into(),
}
}
@@ -278,7 +278,7 @@ impl Config {
let value = value.parse().with_context(|| "Invalid value")?;
self.dry_run = value;
}
- _ => return Ok(format!("Error: Unknown key `{key}`\n")),
+ _ => return Ok(format!("Error: Unknown key `{key}`")),
}
Ok("".into())
}