-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add doc for ConstructCell, improve doc Boxed, Enum #940
Conversation
They can't, neither can flags :) |
glib-macros/src/lib.rs
Outdated
@@ -445,7 +446,7 @@ pub fn closure_local(item: TokenStream) -> TokenStream { | |||
/// use glib::subclass::prelude::*; | |||
/// | |||
/// #[derive(Debug, Copy, Clone, PartialEq, Eq, glib::Enum)] | |||
/// #[enum_type(name = "MyEnum")] | |||
/// #[enum_type(name = "MyEnum", nullable)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd expect this to fail. It should :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except it doesn't fail. The doc check failed for other network related reasons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it doesn't check if there are random other, unknown attributes apparently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So just remove the wrong attribute here for now :)
dda0782
to
c7c727d
Compare
Related to the issue #932.
I'm not sure if types created with
glib::Enum
can benullable
...