Remove some unnecessary L!

This commit is contained in:
ridiculousfish 2024-01-06 16:49:58 -08:00
parent 0d6c6b2c8a
commit e110d4c672

View File

@ -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!(),
}