Skip to content
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

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

ranfdev
Copy link
Member

@ranfdev ranfdev commented Jan 31, 2023

Related to the issue #932.

I'm not sure if types created with glib::Enum can be nullable...

@sdroege
Copy link
Member

sdroege commented Jan 31, 2023

I'm not sure if types created with glib::Enum can be nullable...

They can't, neither can flags :)

@@ -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)]
Copy link
Member

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 :)

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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 :)

glib/src/construct_cell.rs Outdated Show resolved Hide resolved
@ranfdev ranfdev force-pushed the nullable_doc branch 2 times, most recently from dda0782 to c7c727d Compare February 2, 2023 13:51
@sdroege sdroege merged commit 60aaf3d into gtk-rs:master Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants