Skip to content

Commit

Permalink
klip
Browse files Browse the repository at this point in the history
  • Loading branch information
Bromeon committed Nov 3, 2024
1 parent 7149146 commit fc62870
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion godot-core/src/builtin/collections/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ impl<T: ArrayElement> ArgTarget for Array<T> {
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()
}
}
Expand Down
6 changes: 3 additions & 3 deletions godot-core/src/meta/as_arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down Expand Up @@ -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()
}
}
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions godot-core/src/obj/gd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ impl<T: GodotClass> ArgTarget for Gd<T> {
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()
}
}
Expand All @@ -810,7 +810,7 @@ impl<T: GodotClass> ArgTarget for Option<Gd<T>> {
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()
}
}
Expand Down

0 comments on commit fc62870

Please sign in to comment.