From 61fc2e7b669c60082abf0c8813baa7ab7128ba4e Mon Sep 17 00:00:00 2001 From: Artemiy Date: Mon, 24 Mar 2025 15:37:06 +0300 Subject: [PATCH] fmt passed --- src/term.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/term.rs b/src/term.rs index dc0470cf..2f461397 100644 --- a/src/term.rs +++ b/src/term.rs @@ -254,7 +254,9 @@ pub fn terminal_file_link<'a>( .queue(SetForegroundColor(color))? .queue(SetAttribute(Attribute::Underlined))?; writer.stdout().write_all(b"\x1b]8;;file://")?; - writer.stdout().write_all(encoded_spaces_canonical_path.as_bytes())?; + writer + .stdout() + .write_all(encoded_spaces_canonical_path.as_bytes())?; writer.stdout().write_all(b"\x1b\\")?; // Only this part is visible. writer.write_str(path)?; @@ -271,7 +273,6 @@ fn encode_spaces(path: &str) -> String { path.replace(" ", "%20") } - pub fn write_ansi(output: &mut Vec, command: impl Command) { struct FmtWriter<'a>(&'a mut Vec);