From 72cdf68d6714053e2e7838aac06376f739fb68e4 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Fri, 22 Nov 2024 08:48:39 +0700 Subject: [PATCH] refactor: replace `extern crate` with `use` --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c791f35..efd6bd0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,8 @@ #![deny(clippy::all)] -#[macro_use] -extern crate napi_derive; use copy_on_write::reflink_file_sync; use napi::{bindgen_prelude::AsyncTask, Env, Error, JsNumber, Result, Task}; +use napi_derive::napi; pub struct AsyncReflink { src: String,