Skip to content

Commit

Permalink
feat: import error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Aug 16, 2024
1 parent 99d326c commit c4e58d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ impl BuiltinPlugin {
}
BuiltinPluginName::HtmlRspackPlugin => {
let plugin =
HtmlRspackPlugin::new(downcast_into::<RawHtmlRspackPluginOptions>(self.options)?.into())?
HtmlRspackPlugin::new(downcast_into::<RawHtmlRspackPluginOptions>(self.options)?.into())
.boxed();
plugins.push(plugin);
}
Expand Down
4 changes: 2 additions & 2 deletions crates/rspack_plugin_html/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ pub struct HtmlRspackPlugin {
}

impl HtmlRspackPlugin {
pub fn new(config: HtmlRspackPluginOptions) -> Result<Self> {
Ok(Self::new_inner(config))
pub fn new(config: HtmlRspackPluginOptions) -> Self {
Self::new_inner(config)
}
}

Expand Down

0 comments on commit c4e58d7

Please sign in to comment.