The helper commit_message() really should return an Result<String>

This commit is contained in:
Matthias Beyer 2016-09-07 21:13:05 +02:00
parent 6444f95b58
commit 242fa863b2

View file

@ -13,11 +13,11 @@ pub fn commit_interactive(config: &Value) -> bool {
false
}
pub fn commit_message(config: &Value, action: StoreAction) -> String {
pub fn commit_message(config: &Value, action: StoreAction) -> Result<String> {
if commit_interactive(config) {
unimplemented!()
} else {
String::from("Dummy commit")
Ok(String::from("Dummy commit"))
}
}