Skip to content

Commit

Permalink
moved .to_owned() outside of bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
reujab committed Sep 12, 2019
1 parent b69593f commit c02ffbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/git.rs
Expand Up @@ -50,10 +50,10 @@ pub fn segment(segment: &mut Segment, args: &[&str]) {
for status in statuses.iter() {
// dirty
segment.background = if args.is_empty() {
"yellow".to_owned()
"yellow"
} else {
args[0].to_owned()
};
args[0]
}.to_owned();

let status = status.status();
if modified.is_empty() && status.is_wt_new()
Expand Down

0 comments on commit c02ffbc

Please sign in to comment.