Clippy fixes

This commit is contained in:
Jeremy Soller
2022-11-11 13:19:14 -07:00
parent 515a03b870
commit 8e0f54cb31
27 changed files with 76 additions and 87 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ impl Scheme for SysScheme {
let data = entry.1()?;
self.handles.write().insert(id, Handle {
path: entry.0,
data: data,
data,
mode: MODE_FILE | 0o444,
seek: 0
});
+1 -1
View File
@@ -15,7 +15,7 @@ pub fn resource() -> Result<Vec<u8>> {
let contexts = context::contexts();
for (id, context_lock) in contexts.iter() {
let context = context_lock.read();
rows.push((*id, context.name.read().clone(), context.syscall.clone()));
rows.push((*id, context.name.read().clone(), context.syscall));
}
}