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

Cleanup links and attributes #490

Merged
merged 1 commit into from Jul 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -19,7 +19,7 @@ Some common use cases are:
* Skip serializing all empty `Option` types with [`#[skip_serializing_none]`][skip_serializing_none].
* Apply a prefix to each field name of a struct, without changing the de/serialize implementations of the struct using [`with_prefix!`][].
* Deserialize a comma separated list like `#hash,#tags,#are,#great` into a `Vec<String>`.
Check the documentation for [`serde_with::rust::StringWithSeparator::<CommaSeparator>`][StringWithSeparator].
Check the documentation for [`serde_with::StringWithSeparator::<CommaSeparator, T>`][StringWithSeparator].

### Getting Help

Expand Down Expand Up @@ -162,7 +162,7 @@ Foo {
[`with_prefix!`]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/macro.with_prefix.html
[feature flags]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/feature_flags/index.html
[skip_serializing_none]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/attr.skip_serializing_none.html
[StringWithSeparator]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/rust/struct.StringWithSeparator.html
[StringWithSeparator]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/struct.StringWithSeparator.html
[user guide]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/index.html
[with-annotation]: https://serde.rs/field-attrs.html#with
[as-annotation]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/serde_as/index.html
Expand Down
4 changes: 2 additions & 2 deletions serde_with/src/lib.rs
@@ -1,6 +1,6 @@
#![warn(
clippy::semicolon_if_nothing_returned,
// missing_crate_level_docs, not available in MSRV
missing_crate_level_docs,
missing_docs,
rust_2018_idioms,
trivial_casts,
Expand Down Expand Up @@ -254,7 +254,7 @@
//! [`with_prefix!`]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/macro.with_prefix.html
//! [feature flags]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/feature_flags/index.html
//! [skip_serializing_none]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/attr.skip_serializing_none.html
//! [StringWithSeparator]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/rust/struct.StringWithSeparator.html
//! [StringWithSeparator]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/struct.StringWithSeparator.html
//! [user guide]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/index.html
//! [with-annotation]: https://serde.rs/field-attrs.html#with
//! [as-annotation]: https://docs.rs/serde_with/2.0.0-rc.0/serde_with/guide/serde_as/index.html
Expand Down
2 changes: 0 additions & 2 deletions serde_with/src/with_prefix.rs
Expand Up @@ -141,7 +141,6 @@ macro_rules! with_prefix {
};
}

#[allow(missing_debug_implementations)]
pub struct WithPrefix<'a, T> {
pub delegate: T,
pub prefix: &'a str,
Expand Down Expand Up @@ -516,7 +515,6 @@ where
}
}

#[allow(missing_debug_implementations)]
pub struct WithPrefixOption<'a, T> {
first_key: Option<String>,
delegate: T,
Expand Down
2 changes: 1 addition & 1 deletion serde_with_macros/src/lib.rs
Expand Up @@ -2,7 +2,7 @@
#![warn(
clippy::semicolon_if_nothing_returned,
missing_copy_implementations,
// missing_crate_level_docs, not available in MSRV
missing_crate_level_docs,
missing_debug_implementations,
missing_docs,
rust_2018_idioms,
Expand Down