diff options
Diffstat (limited to 'samples/rust/rust_debugfs_scoped.rs')
| -rw-r--r-- | samples/rust/rust_debugfs_scoped.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/rust/rust_debugfs_scoped.rs b/samples/rust/rust_debugfs_scoped.rs index 9f0ec5f24cda..406e6588b17a 100644 --- a/samples/rust/rust_debugfs_scoped.rs +++ b/samples/rust/rust_debugfs_scoped.rs @@ -38,7 +38,7 @@ fn remove_file_write( mod_data .devices .lock() - .retain(|device| device.name.as_bytes() != to_remove.as_bytes()); + .retain(|device| device.name.to_bytes() != to_remove.to_bytes()); Ok(()) } |
