Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

samples: rust: debugfs: use `core::ffi::CStr` method names

Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoiding methods that only exist on the latter.

This backslid in commit d4a5d397c7fb ("samples: rust: Add scoped debugfs
sample driver").

Link: https://patch.msgid.link/20251019213049.2060970-1-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

+1 -1
+1 -1
samples/rust/rust_debugfs_scoped.rs
··· 38 38 mod_data 39 39 .devices 40 40 .lock() 41 - .retain(|device| device.name.as_bytes() != to_remove.as_bytes()); 41 + .retain(|device| device.name.to_bytes() != to_remove.to_bytes()); 42 42 Ok(()) 43 43 } 44 44