finish current clippy lints to make CI green

This commit is contained in:
auronandace
2026-07-13 07:16:35 +01:00
parent cbc14a3176
commit 9c2dd2a898
5 changed files with 15 additions and 1 deletions
+1
View File
@@ -258,6 +258,7 @@ impl<'a, T: Kind> NulStr<'a, T> {
/// Scan the string to get its length.
#[doc(alias = "strlen")]
#[doc(alias = "wcslen")]
#[expect(clippy::len_without_is_empty, reason = "len() signature intentional")]
pub fn len(self) -> usize {
self.to_chars().len()
}
+1
View File
@@ -117,6 +117,7 @@ macro_rules! trace_expr {
// log::trace! but functions inside them will
// not be evaluated or compiled unless enabled
#[cfg(target_os = "redox")] // currently only used in redox
macro_rules! trace_log {
($($arg:tt)+) => {
#[cfg(not(feature = "no_trace"))]