Fix all clippy warnings: collapsible_if, for_kv_map, vec_init_then_push, let_and_return, manual_div_ceil, useless_conversion, needless_borrows, manual_is_multiple_of, new_without_default, unnecessary_lazy_evaluations
This commit is contained in:
parent
2d2057ee87
commit
887a37e64c
9 changed files with 49 additions and 53 deletions
|
|
@ -98,7 +98,7 @@ impl WasmTileSourcePlugin {
|
|||
tile_z: i32,
|
||||
) -> Result<(Store<WorldContext>, Instance), WasmHostError> {
|
||||
let mut linker = Linker::new(&self.engine);
|
||||
register_host_functions(&mut linker).map_err(|e| WasmHostError::LoadError(e.into()))?;
|
||||
register_host_functions(&mut linker).map_err(WasmHostError::LoadError)?;
|
||||
|
||||
let ctx = WorldContext {
|
||||
tile: tile.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue