Skip to content

Commit

Permalink
fix clippy warnning
Browse files Browse the repository at this point in the history
Signed-off-by: guoweikang <[email protected]>
  • Loading branch information
guoweikang committed Oct 15, 2024
1 parent 3d826d9 commit 5a3f0c4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ pub use raw_list::{GetLinks, Links};
#[macro_export]
macro_rules! def_node {
($struct_name:ident, $type:ty) => {
#[doc = concat!("Struct ", stringify!($struct_name),
"is a Node wrapper for type ", stringify!($type))]
#[doc = concat!("Struct ", stringify!($struct_name),"is a Node wrapper for type ", stringify!($type))]
pub struct $struct_name {
pub inner: $type,
links: $crate::Links<Self>,
Expand Down Expand Up @@ -134,8 +133,7 @@ macro_rules! def_node {
#[macro_export]
macro_rules! def_generic_node {
($struct_name:ident) => {
#[doc = concat!("Struct ", stringify!($struct_name),
"is a Node wrapper include a generic type")]
#[doc = concat!("Struct ", stringify!($struct_name),"is a Node wrapper include a generic type")]
pub struct $struct_name<T> {
pub inner: T,
links: $crate::Links<Self>,
Expand Down

0 comments on commit 5a3f0c4

Please sign in to comment.