Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Apr 23, 2023
1 parent 0e63e68 commit d37240a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/rspack_core/src/normal_module_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl NormalModuleFactory {
unreachable!()
}
};
s.split("!").filter(|item| !item.is_empty()).collect::<Vec<_>>()
s.split('!').filter(|item| !item.is_empty()).collect::<Vec<_>>()
};
resolve_args.specifier = raw_elements.pop().ok_or_else(|| {
let s = resolve_args.specifier;
Expand Down
6 changes: 3 additions & 3 deletions crates/rspack_core/src/plugin/api.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{fmt::Debug, path::Path};

use rspack_error::{internal_error_bail, Result};
use rspack_error::Result;
use rspack_loader_runner::{Content, ResourceData};
use rspack_sources::BoxSource;
use rustc_hash::FxHashMap as HashMap;
Expand All @@ -11,8 +11,8 @@ use crate::{
JsChunkHashArgs, Module, ModuleArgs, ModuleFactoryResult, ModuleType, NormalModule,
NormalModuleFactoryContext, NormalModuleFactoryResolveForSchemeArgs, OptimizeChunksArgs,
ParserAndGenerator, PluginContext, ProcessAssetsArgs, RenderArgs, RenderChunkArgs,
RenderManifestArgs, RenderModuleContentArgs, RenderStartupArgs, ResolveArgs, Resolver,
ResolverFactory, SharedPluginDriver, SourceType, ThisCompilationArgs,
RenderManifestArgs, RenderModuleContentArgs, RenderStartupArgs, Resolver, SourceType,
ThisCompilationArgs,
};

// use anyhow::{Context, Result};
Expand Down
3 changes: 1 addition & 2 deletions crates/rspack_core/src/plugin/plugin_driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ use crate::{
PluginRenderChunkHookOutput, PluginRenderHookOutput, PluginRenderManifestHookOutput,
PluginRenderModuleContentOutput, PluginRenderStartupHookOutput, PluginThisCompilationHookOutput,
ProcessAssetsArgs, RenderArgs, RenderChunkArgs, RenderManifestArgs, RenderModuleContentArgs,
RenderStartupArgs, ResolveArgs, Resolver, ResolverFactory, SharedPluginDriver, SourceType, Stats,
ThisCompilationArgs,
RenderStartupArgs, Resolver, ResolverFactory, SourceType, Stats, ThisCompilationArgs,
};

pub struct PluginDriver {
Expand Down

0 comments on commit d37240a

Please sign in to comment.