diff --git a/godot-core/src/builtin/collections/array.rs b/godot-core/src/builtin/collections/array.rs index 73d293b53..19f795247 100644 --- a/godot-core/src/builtin/collections/array.rs +++ b/godot-core/src/builtin/collections/array.rs @@ -951,7 +951,7 @@ impl ArgTarget for Array { CowArg::Owned(self) } - fn arg_to_ref<'r, 'v>(arg: &'r Self::Type<'v>) -> &'r Self { + fn arg_to_ref<'r>(arg: &'r Self::Type<'_>) -> &'r Self { arg.cow_as_ref() } } diff --git a/godot-core/src/meta/as_arg.rs b/godot-core/src/meta/as_arg.rs index e49bf4ffa..40cdc280d 100644 --- a/godot-core/src/meta/as_arg.rs +++ b/godot-core/src/meta/as_arg.rs @@ -89,7 +89,7 @@ macro_rules! impl_asarg_by_value { self } - fn arg_to_ref<'r, 'v>(arg: &'r Self::Type<'v>) -> &'r Self { + fn arg_to_ref<'r>(arg: &'r Self::Type<'_>) -> &'r Self { arg } } @@ -122,7 +122,7 @@ macro_rules! impl_asarg_by_ref { $crate::meta::CowArg::Owned(self) } - fn arg_to_ref<'r, 'v>(arg: &'r Self::Type<'v>) -> &'r Self { + fn arg_to_ref<'r>(arg: &'r Self::Type<'_>) -> &'r Self { arg.cow_as_ref() } } @@ -252,7 +252,7 @@ where /// /// Useful in generic contexts where only a value is available, and one doesn't want to dispatch between value/reference. #[doc(hidden)] - fn arg_to_ref<'r, 'v>(arg: &'r Self::Type<'v>) -> &'r Self; + fn arg_to_ref<'r>(arg: &'r Self::Type<'_>) -> &'r Self; } /// Shorthand to determine how a type is passed as an argument to Godot APIs. diff --git a/godot-core/src/obj/gd.rs b/godot-core/src/obj/gd.rs index 35d59a69a..716ec7345 100644 --- a/godot-core/src/obj/gd.rs +++ b/godot-core/src/obj/gd.rs @@ -788,7 +788,7 @@ impl ArgTarget for Gd { CowArg::Owned(self) } - fn arg_to_ref<'r, 'v>(arg: &'r Self::Type<'v>) -> &'r Self { + fn arg_to_ref<'r>(arg: &'r Self::Type<'_>) -> &'r Self { arg.cow_as_ref() } } @@ -810,7 +810,7 @@ impl ArgTarget for Option> { CowArg::Owned(self) } - fn arg_to_ref<'r, 'v>(arg: &'r Self::Type<'v>) -> &'r Self { + fn arg_to_ref<'r>(arg: &'r Self::Type<'_>) -> &'r Self { arg.cow_as_ref() } }