summaryrefslogtreecommitdiffstats
path: root/src/print.rs
diff options
context:
space:
mode:
authorThomas O'Donnell <andytom@users.noreply.github.com>2020-06-06 05:20:11 +0200
committerGitHub <noreply@github.com>2020-06-05 23:20:11 -0400
commit5b14f213942df72f32c14acacd51b15aa69c9ee3 (patch)
treeb0619b43788255a72fae9d93bc0c0ede095492bb /src/print.rs
parentc04a0eb1d18012530e9e43a0cad6e10118d2d6a3 (diff)
refactor: latest suggestions from Clippy
Diffstat (limited to 'src/print.rs')
-rw-r--r--src/print.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/print.rs b/src/print.rs
index 82a4eed03..369f3b387 100644
--- a/src/print.rs
+++ b/src/print.rs
@@ -40,10 +40,10 @@ pub fn get_prompt(context: Context) -> String {
for module in printable {
// Skip printing the prefix of a module after the line_break
if print_without_prefix {
- let module_without_prefix = module.to_string_without_prefix(context.shell.clone());
+ let module_without_prefix = module.to_string_without_prefix(context.shell);
write!(buf, "{}", module_without_prefix).unwrap()
} else {
- let module = module.ansi_strings_for_shell(context.shell.clone());
+ let module = module.ansi_strings_for_shell(context.shell);
write!(buf, "{}", ANSIStrings(&module)).unwrap();
}