Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bromeon committed Sep 22, 2024
1 parent 606353a commit ff3aefe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions godot-core/src/meta/ref_arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl<'r, T> RefArg<'r, T> {

macro_rules! wrong_direction {
($fn:ident) => {
unimplemented!(concat!(
unreachable!(concat!(
stringify!($fn),
": RefArg should only be passed *to* Godot, not *from*."
))
Expand Down Expand Up @@ -103,7 +103,7 @@ where
}

fn sys_mut(&mut self) -> sys::GDExtensionTypePtr {
unimplemented!("RefArg::sys_mut() currently not used by FFI marshalling layer, but only by specific functions");
unreachable!("RefArg::sys_mut() currently not used by FFI marshalling layer, but only by specific functions");
}

// This function must be overridden; the default delegating to sys() is wrong for e.g. RawGd<T>.
Expand All @@ -121,7 +121,7 @@ where

unsafe fn move_return_ptr(self, _dst: sys::GDExtensionTypePtr, _call_type: PtrcallType) {
// This one is implemented, because it's used for return types implementing ToGodot.
unimplemented!("Calling RefArg::move_return_ptr is a mistake, as RefArg is intended only for arguments. Use the underlying value type.");
unreachable!("Calling RefArg::move_return_ptr is a mistake, as RefArg is intended only for arguments. Use the underlying value type.");
}
}

Expand Down

0 comments on commit ff3aefe

Please sign in to comment.