Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
noise64 committed Nov 14, 2024
1 parent 2057f13 commit 938aec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion wasm-rpc-stubgen/src/commands/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ pub trait LogColorize {

impl<'a> LogColorize for &'a str {
fn as_str(&self) -> impl Colorize {
self.as_ref()
*self
}
}

Expand Down
7 changes: 1 addition & 6 deletions wasm-rpc-stubgen/src/model/wasm_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,12 +587,7 @@ impl Application {
pub fn all_wasm_rpc_dependencies(&self) -> BTreeSet<ComponentName> {
self.wasm_components_by_name
.iter()
.flat_map(|(_, component)| {
component
.wasm_rpc_dependencies
.iter()
.map(|component_name| component_name.clone())
})
.flat_map(|(_, component)| component.wasm_rpc_dependencies.iter().cloned())
.collect()
}

Expand Down

0 comments on commit 938aec1

Please sign in to comment.