diff --git a/lib/src/settings.rs b/lib/src/settings.rs index e7546d10c..062efa7c7 100644 --- a/lib/src/settings.rs +++ b/lib/src/settings.rs @@ -68,7 +68,7 @@ impl UserSettings { pub fn push_branch_prefix(&self) -> String { self.config .get_string("push.branch-prefix") - .unwrap_or("push-".to_string()) + .unwrap_or_else(|_| "push-".to_string()) } pub fn signature(&self) -> Signature {