settings: fix a clippy warning

This commit is contained in:
Martin von Zweigbergk 2022-05-25 09:45:25 -07:00 committed by Martin von Zweigbergk
parent 9831b82a98
commit 9dbf32db3a

View file

@ -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 {