Skip to content

Commit 005b5a1

Browse files
committed
chore: update
1 parent c9c6bbd commit 005b5a1

File tree

1 file changed

+2
-2
lines changed
  • crates/rspack_binding_values/src/options

1 file changed

+2
-2
lines changed

crates/rspack_binding_values/src/options/library.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl From<LibraryCustomUmdObject> for JsLibraryCustomUmdObject {
3232
Self {
3333
amd: value.amd,
3434
commonjs: value.commonjs,
35-
root: value.root.map(|v| Either::A(v)),
35+
root: value.root.map(Either::A),
3636
}
3737
}
3838
}
@@ -183,7 +183,7 @@ impl From<LibraryOptions> for JsLibraryOptions {
183183
LibraryName::NonUmdObject(LibraryNonUmdObject::Array(names)) => Either3::B(names),
184184
LibraryName::UmdObject(umd_object) => Either3::C(umd_object.into()),
185185
}),
186-
export: value.export.map(|v| Either::A(v)),
186+
export: value.export.map(Either::A),
187187
r#type: value.library_type,
188188
umd_named_define: value.umd_named_define,
189189
auxiliary_comment: value

0 commit comments

Comments
 (0)