Skip to content

Commit

Permalink
fix: cargo lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Aug 9, 2024
1 parent 09888c8 commit fdf210f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/rspack_binding_values/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,7 @@ impl ModuleDTO {
#[napi]
pub fn size(&self, ty: Option<String>) -> f64 {
let module = self.module();
let ty = match ty {
Some(s) => Some(SourceType::from(s.as_str())),
None => None,
};
let ty = ty.map(|s| SourceType::from(s.as_str()));
module.size(ty.as_ref(), self.compilation)
}
}
Expand Down

0 comments on commit fdf210f

Please sign in to comment.