The helper commit_message() really should return an Result<String>
This commit is contained in:
parent
6444f95b58
commit
242fa863b2
1 changed files with 2 additions and 2 deletions
|
@ -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"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue