Skip to content

Commit

Permalink
fix rust lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed May 3, 2023
1 parent 2e64cea commit 98ed73e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/next-swc/crates/core/src/react_server_components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ impl<C: Comments> VisitMut for ReactServerComponents<C> {
noop_visit_mut_type!();

fn visit_mut_module(&mut self, module: &mut Module) {
let (is_client_entry, is_action_file, imports) = self.collect_top_level_directives_and_imports(module);
let (is_client_entry, is_action_file, imports) =
self.collect_top_level_directives_and_imports(module);
let is_cjs = contains_cjs(module);

if self.is_server {
Expand Down Expand Up @@ -101,7 +102,8 @@ impl<C: Comments> ReactServerComponents<C> {
handler
.struct_span_err(
span,
"It's not possible to have both `use client` and `use server` directives in the same file.",
"It's not possible to have both `use client` and `use server` directives \
in the same file.",
)
.emit()
})
Expand Down

0 comments on commit 98ed73e

Please sign in to comment.