From 11ba6b365dbc0a37fc9a359f7a55bbfde28084ae Mon Sep 17 00:00:00 2001 From: Ryan Avella Date: Sat, 21 Oct 2023 13:46:25 -0700 Subject: [PATCH] fix: Removing deprecated anonymous parameters. --- src/array_serializer.rs | 4 ++-- src/serializer.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/array_serializer.rs b/src/array_serializer.rs index 145f51d..5ed25b8 100644 --- a/src/array_serializer.rs +++ b/src/array_serializer.rs @@ -4,7 +4,7 @@ use object_builder; use array_builder; pub trait ArraySerializer { - fn build(&self, &mut array_builder::ArrayBuilder); + fn build(&self, _: &mut array_builder::ArrayBuilder); #[inline] fn root(&self) -> Option<&str> { @@ -41,4 +41,4 @@ pub trait ArraySerializer { None => bldr.unwrap(), } } -} \ No newline at end of file +} diff --git a/src/serializer.rs b/src/serializer.rs index e8d0b42..75fa99c 100644 --- a/src/serializer.rs +++ b/src/serializer.rs @@ -33,7 +33,7 @@ use object_builder; /// ``` pub trait Serializer { - fn build(&self, &mut object_builder::ObjectBuilder); + fn build(&self, _: &mut object_builder::ObjectBuilder); #[inline] fn root(&self) -> Option<&str> { @@ -82,7 +82,7 @@ pub trait Serializer { /// ``` pub trait ObjectSerializer { - fn build(&self, &T, &mut object_builder::ObjectBuilder); + fn build(&self, _: &T, _: &mut object_builder::ObjectBuilder); #[inline] fn root(&self) -> Option<&str> { @@ -151,7 +151,7 @@ pub trait ObjectSerializer { /// ``` pub trait ObjectScopeSerializer { - fn build(&self, &T, &S, &mut object_builder::ObjectBuilder); + fn build(&self, _: &T, _: &S, _: &mut object_builder::ObjectBuilder); #[inline] fn root(&self) -> Option<&str> {