From c02ffbc4190ca53de6f84a4664f9f428b9299429 Mon Sep 17 00:00:00 2001 From: reujab Date: Wed, 11 Sep 2019 22:44:26 -0400 Subject: [PATCH] moved `.to_owned()` outside of bracket --- src/modules/git.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/git.rs b/src/modules/git.rs index 439fc9c..732df5f 100644 --- a/src/modules/git.rs +++ b/src/modules/git.rs @@ -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()