Skip to content

chore: box Status contents (#2253) #2282

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tustvold
Copy link

Motivation

See #2253

Solution

pub struct Status {
pub struct Status(Box<StatusInner>);

impl From<StatusInner> for Status {
Copy link
Author

Choose a reason for hiding this comment

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

This was marginally more ergonomic than creating a constructor, but let me know if you would prefer a constructor instead

Copy link
Member

Choose a reason for hiding this comment

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

I think we need to make this a private function on status so that it doesn't show up in the docs? I don't want the docs to even reference StatusInner at all.

Copy link
Author

Choose a reason for hiding this comment

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

Good point, although #[doc(hidden)] would also work

pub struct Status {
pub struct Status(Box<StatusInner>);

impl From<StatusInner> for Status {
Copy link
Member

Choose a reason for hiding this comment

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

I think we need to make this a private function on status so that it doesn't show up in the docs? I don't want the docs to even reference StatusInner at all.

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