Skip to content

Commit 3159138

Browse files
committed
Clippy nightly: fix lifetime annotations not used in the impl block
Original errors (4): ------------------------------------------------------------------------------- error: this lifetime isn't used in the impl --> gdnative-core/src/core_types/variant/serialize.rs:114:6 | 114 | impl<'d> Serialize for DictionaryDispatch { | ^^ | = note: `-D clippy::extra-unused-lifetimes` implied by `-D clippy::complexity` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes -------------------------------------------------------------------------------
1 parent c69c5a0 commit 3159138

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gdnative-core/src/core_types/variant/serialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct DictionaryDispatchEntry {
111111
value: VariantDispatch,
112112
}
113113

114-
impl<'d> Serialize for DictionaryDispatch {
114+
impl Serialize for DictionaryDispatch {
115115
fn serialize<S>(&self, serializer: S) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
116116
where
117117
S: Serializer,

gdnative-core/src/object/as_arg.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ mod private {
4444
}
4545

4646
// Null
47-
impl<'a, T> private::Sealed for Null<T> {}
47+
impl<T> private::Sealed for Null<T> {}
4848

4949
// Temporary references (shared ownership)
5050
impl<'a, T: GodotObject> private::Sealed for TRef<'a, T, Shared> {}
@@ -59,14 +59,14 @@ impl<T: NativeClass, Own: Ownership> private::Sealed for Instance<T, Own> {}
5959
// ----------------------------------------------------------------------------------------------------------------------------------------------
6060
// Null
6161

62-
impl<'a, T: GodotObject> AsArg<T> for Null<T> {
62+
impl<T: GodotObject> AsArg<T> for Null<T> {
6363
#[inline]
6464
fn as_arg_ptr(&self) -> *mut sys::godot_object {
6565
std::ptr::null_mut()
6666
}
6767
}
6868

69-
impl<'a, T: GodotObject> AsVariant for Null<T> {
69+
impl<T: GodotObject> AsVariant for Null<T> {
7070
type Target = T;
7171
}
7272

0 commit comments

Comments
 (0)