From 242fa863b2379063f09e33d15fbd69c8cebb1ae2 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 7 Sep 2016 21:13:05 +0200 Subject: [PATCH] The helper commit_message() really should return an Result --- libimagstorestdhook/src/vcs/git/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libimagstorestdhook/src/vcs/git/config.rs b/libimagstorestdhook/src/vcs/git/config.rs index 0a9d5907..a7e262d6 100644 --- a/libimagstorestdhook/src/vcs/git/config.rs +++ b/libimagstorestdhook/src/vcs/git/config.rs @@ -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 { if commit_interactive(config) { unimplemented!() } else { - String::from("Dummy commit") + Ok(String::from("Dummy commit")) } }