cargo clippy
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user