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

fix(Metadata): add #[serde(default)] on workspace_default_members field #266

Merged

Conversation

zjp-CN
Copy link
Contributor

@zjp-CN zjp-CN commented Oct 3, 2024

Set a default value when Metadata is deserialized with WorkspaceDefaultMembers skipped in serialization.

src/lib.rs Outdated Show resolved Hide resolved
warning: first doc comment paragraph is too long
   --> src/lib.rs:729:1
    |
729 | / /// Similar to `kind`, but only reports the
730 | | /// [Cargo crate types](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-crate-type-field):
731 | | /// `bin`, `lib`, `rlib`, `dylib`, `cdylib`, `staticlib`, `proc-macro`.
732 | | /// Everything that's not a proc macro or a library of some kind is reported as "bin".
733 | | ///
734 | | /// Other possible values may be added in the future.
    | |_
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph
    = note: `#[warn(clippy::too_long_first_doc_paragraph)]` on by default
@zjp-CN zjp-CN force-pushed the workspace_default_members-serde-default branch from dc53ab2 to 45ceca0 Compare December 3, 2024 12:35
@oli-obk oli-obk merged commit 9d84a01 into oli-obk:main Dec 3, 2024
6 checks passed
@oli-obk
Copy link
Owner

oli-obk commented Dec 3, 2024

Thanks

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