From adf1c62f358c8dc2d4d2359eed84b0f0a7a766e6 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 10 Dec 2024 15:58:13 -0600 Subject: [PATCH] clippy --- crates/libs/implement/src/lib.rs | 6 ++---- crates/libs/interface/src/lib.rs | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/crates/libs/implement/src/lib.rs b/crates/libs/implement/src/lib.rs index 3aa61ae78b..043d1b1762 100644 --- a/crates/libs/implement/src/lib.rs +++ b/crates/libs/implement/src/lib.rs @@ -27,10 +27,8 @@ use quote::{quote, ToTokens}; /// } /// } /// -/// fn main() { -/// let object: IValue = Value(123).into(); -/// // Call interface methods... -/// } +/// let object: IValue = Value(123).into(); +/// // Call interface methods... /// ``` #[proc_macro_attribute] pub fn implement( diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs index 77c11d25c7..04b5234bc2 100644 --- a/crates/libs/interface/src/lib.rs +++ b/crates/libs/interface/src/lib.rs @@ -28,10 +28,8 @@ use syn::spanned::Spanned; /// } /// } /// -/// fn main() { -/// let object: IValue = Value(123).into(); -/// // Call interface methods... -/// } +/// let object: IValue = Value(123).into(); +/// // Call interface methods... /// ``` #[proc_macro_attribute] pub fn interface(