1
0
Fork 0
forked from wry/wry

utils: remove AsciiTrim trait

This commit is contained in:
Julian Orth 2025-01-06 20:09:33 +01:00
parent 0d1aeeab45
commit 32cb00444b
7 changed files with 22 additions and 53 deletions

View file

@ -22,7 +22,7 @@ use {
},
},
udev::UdevError,
utils::{errorfmt::ErrorFmt, oserror::OsError, ptr_ext::PtrExt, trim::AsciiTrim},
utils::{errorfmt::ErrorFmt, oserror::OsError, ptr_ext::PtrExt},
},
bstr::ByteSlice,
isnt::std_1::primitive::IsntConstPtrExt,
@ -182,5 +182,9 @@ unsafe extern "C" fn jay_libinput_log_handler(
LIBINPUT_LOG_PRIORITY_ERROR => log::Level::Error,
_ => log::Level::Error,
};
log::log!(priority, "libinput: {}", str.to_bytes().trim().as_bstr());
log::log!(
priority,
"libinput: {}",
str.to_bytes().trim_ascii().as_bstr()
);
}