From e110d4c672a92cf3b6279b3e3723ff937d7942f2 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 6 Jan 2024 16:49:58 -0800 Subject: [PATCH] Remove some unnecessary L! --- fish-rust/src/event.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fish-rust/src/event.rs b/fish-rust/src/event.rs index 6d20f9fcf..8fe92b859 100644 --- a/fish-rust/src/event.rs +++ b/fish-rust/src/event.rs @@ -654,9 +654,7 @@ pub fn print(streams: &mut IoStreams, type_filter: &wstr) { } last_type = std::mem::discriminant(&evt.desc); - streams - .out - .append(sprintf!(L!("Event %ls\n"), evt.desc.name())); + streams.out.append(sprintf!("Event %ls\n", evt.desc.name())); } match &evt.desc { @@ -664,18 +662,18 @@ pub fn print(streams: &mut IoStreams, type_filter: &wstr) { let name: WString = signal.name().into(); streams .out - .append(sprintf!(L!("%ls %ls\n"), name, evt.function_name)); + .append(sprintf!("%ls %ls\n", name, evt.function_name)); } EventDescription::ProcessExit { .. } | EventDescription::JobExit { .. } => {} EventDescription::CallerExit { .. } => { streams .out - .append(sprintf!(L!("caller-exit %ls\n"), evt.function_name)); + .append(sprintf!("caller-exit %ls\n", evt.function_name)); } EventDescription::Variable { name: param } | EventDescription::Generic { param } => { streams .out - .append(sprintf!(L!("%ls %ls\n"), param, evt.function_name)); + .append(sprintf!("%ls %ls\n", param, evt.function_name)); } EventDescription::Any => unreachable!(), }