move where the modifier is
This commit is contained in:
parent
5a849a87c7
commit
664625402f
10 changed files with 34 additions and 34 deletions
|
@ -259,7 +259,7 @@ wrap_methods! { GenericCommand;
|
|||
/// The [GenericCommand] gets consumed.
|
||||
///
|
||||
/// Returns tag [CommandTag::Invalid] in case of an error.
|
||||
move fn try_into_packet(command) -> *mut Packet {
|
||||
fn try_into_packet(move command) -> *mut Packet {
|
||||
match command.tag {
|
||||
CommandTag::Invalid => null_mut(),
|
||||
CommandTag::Bitmap => {
|
||||
|
|
|
@ -71,7 +71,7 @@ macro_rules! derive_command_into_packet {
|
|||
#[doc = "Tries to turn a [`" $command_type "`] into a [Packet]."]
|
||||
///
|
||||
/// Returns: NULL or a [Packet] containing the command.
|
||||
move fn try_into_packet(instance) -> *mut ::servicepoint::Packet {
|
||||
fn try_into_packet(move instance) -> *mut ::servicepoint::Packet {
|
||||
$crate::mem::heap_move_ok(instance.try_into())
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue