Compare commits

..

1 commit

Author SHA1 Message Date
Vinzenz Schroeter c702d832f4 do not link non existant functions in the base library
All checks were successful
Rust / build-gnu-apt (pull_request) Successful in 1m59s
Rust / build-size-gnu-unstable (pull_request) Successful in 43s
2025-06-28 18:03:44 +02:00
2 changed files with 3 additions and 1 deletions

View file

@ -62,6 +62,8 @@ macro_rules! derive_command_into_packet {
#[doc = "Tries to turn a [`" $command_type "`] into a [Packet]."] #[doc = "Tries to turn a [`" $command_type "`] into a [Packet]."]
/// ///
/// Returns: NULL or a [Packet] containing the command. /// Returns: NULL or a [Packet] containing the command.
///
/// [Packet]: [`servicepoint::Packet`]
fn try_into_packet(move instance) -> move_ok *mut ::servicepoint::Packet { fn try_into_packet(move instance) -> move_ok *mut ::servicepoint::Packet {
instance.try_into() instance.try_into()
}; };

View file

@ -29,7 +29,7 @@ macro_rules! wrap_method {
::paste::paste!{ ::paste::paste!{
$crate::macros::wrap_method!( $crate::macros::wrap_method!(
$object_type; $object_type;
#[doc = " Calls method [`servicepoint::" $object_type "::" $function "`]."] #[doc = " Calls method [`" $object_type "::" $function "`]."]
/// ///
$(#[$meta])+ $(#[$meta])+
fn $function($ref_or_mut $instance $(, $($param_name: $param_modifier $param_type),*)?) fn $function($ref_or_mut $instance $(, $($param_name: $param_modifier $param_type),*)?)