cargo clippy

This commit is contained in:
2026-02-16 21:37:56 +08:00
parent 279ac11c0e
commit 08e09ab84c
5 changed files with 6 additions and 24 deletions

View File

@@ -27,7 +27,7 @@ fn get_module_metadata(path: &std::path::Path) -> Option<ModuleMetadata> {
metadata.name, metadata.version, metadata.description
);
return Some(metadata);
Some(metadata)
}
Err(e) => {
warn!("Failed to parse metadata.json in {}: {}", path.display(), e);

View File

@@ -66,7 +66,6 @@ pub fn spawn_lua_runtime(script: &str) -> thread::JoinHandle<()> {
if let Err(e) = lua.load(&script).exec() {
error!("Failed to execute lua script: {}", e);
return;
}
})
}