The doc parameter of define_handle is now optional
This commit is contained in:
parent
c400af7f32
commit
584a3bb5da
|
@ -222,6 +222,9 @@ macro_rules! handle_nondispatchable {
|
|||
}
|
||||
#[macro_export]
|
||||
macro_rules! define_handle {
|
||||
( $ name : ident , $ ty : ident ) => {
|
||||
define_handle!($name, $ty, doc = "");
|
||||
};
|
||||
( $ name : ident , $ ty : ident , $ doc_link : meta ) => {
|
||||
#[repr(transparent)]
|
||||
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Copy, Hash)]
|
||||
|
|
|
@ -98,6 +98,9 @@ pub fn define_handle_macro() -> Tokens {
|
|||
quote! {
|
||||
#[macro_export]
|
||||
macro_rules! define_handle{
|
||||
($name: ident, $ty: ident) => {
|
||||
define_handle!($name, $ty, doc = "");
|
||||
};
|
||||
($name: ident, $ty: ident, $doc_link: meta) => {
|
||||
#[repr(transparent)]
|
||||
#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Copy, Hash)]
|
||||
|
|
Loading…
Reference in a new issue