diff --git a/frb_example/pure_dart/rust/src/api/custom_handler.rs b/frb_example/pure_dart/rust/src/api/custom_handler.rs
index 15bd6edc8e..15c73abbe4 100644
--- a/frb_example/pure_dart/rust/src/api/custom_handler.rs
+++ b/frb_example/pure_dart/rust/src/api/custom_handler.rs
@@ -1,5 +1,6 @@
 // FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["sync", "rustAsync", "sse", "sync sse", "rustAsync sse"]}
 
+#[allow(unused_imports)]
 use crate::frb_generated::FLUTTER_RUST_BRIDGE_CODEGEN_VERSION;
 
 // This file demonstrates how to use a custom handler.
diff --git a/frb_example/pure_dart_pde/rust/src/api/custom_handler.rs b/frb_example/pure_dart_pde/rust/src/api/custom_handler.rs
index 153e8bb52b..35b7dec5ab 100644
--- a/frb_example/pure_dart_pde/rust/src/api/custom_handler.rs
+++ b/frb_example/pure_dart_pde/rust/src/api/custom_handler.rs
@@ -2,6 +2,7 @@
 
 // FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["sync", "rustAsync", "sse", "sync sse", "rustAsync sse"]}
 
+#[allow(unused_imports)]
 use crate::frb_generated::FLUTTER_RUST_BRIDGE_CODEGEN_VERSION;
 
 // This file demonstrates how to use a custom handler.