Skip to content

Commit 1e8be5a

Browse files
committed
fix: cargo lint wrong
1 parent 1c750d3 commit 1e8be5a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/rspack_binding_values/src/compilation/dependency.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl DependencyDTO {
1515
}
1616
}
1717

18-
fn dependency<'a>(&self, module_graph: &'a ModuleGraph) -> &'a Box<dyn Dependency> {
18+
fn dependency<'a>(&self, module_graph: &'a ModuleGraph) -> &'a dyn Dependency {
1919
module_graph
2020
.dependency_by_id(&self.dependency_id)
2121
.unwrap_or_else(|| panic!("Failed to get dependency by id = {:?}", &self.dependency_id))
@@ -25,7 +25,7 @@ impl DependencyDTO {
2525
&self,
2626
module_graph: &'a ModuleGraph,
2727
) -> Option<&'a dyn ModuleDependency> {
28-
self.dependency(&module_graph).as_module_dependency()
28+
self.dependency(module_graph).as_module_dependency()
2929
}
3030
}
3131

crates/rspack_binding_values/src/module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl ModuleDTO {
8282
}
8383
}
8484

85-
fn module(&self) -> &Box<dyn Module> {
85+
fn module(&self) -> &dyn Module {
8686
self
8787
.compilation
8888
.module_by_identifier(&self.module_id)

0 commit comments

Comments
 (0)