Skip to content

Commit

Permalink
fix: remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 committed Jun 27, 2024
1 parent 325570a commit 7c81d25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use tokio::fs;
use std::path::Path;
use oxc_allocator::Allocator;
use oxc_ast::{ast::{Function}, visit::walk, Visit};
use oxc_ast::ast::{Directive, ImportDeclaration, StringLiteral};
use oxc_ast::ast::{Directive, ImportDeclaration};
use oxc_parser::Parser;
use oxc_span::SourceType;
use oxc_syntax::scope::ScopeFlags;
Expand Down Expand Up @@ -69,7 +69,6 @@ impl Default for ReactServerComponent {

impl<'a> Visit<'a> for ReactServerComponent {
fn visit_directive(&mut self, directive: &Directive<'a>) {
println!("visit_directive: {:?}", directive.expression.value);
match directive.expression.value.as_str() {
"use client" => {
if self.file_type == FileType::ServerComponent ||
Expand Down

0 comments on commit 7c81d25

Please sign in to comment.