Skip to content

Commit

Permalink
Cleanup links and attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb committed Jul 3, 2022
1 parent 12cd92a commit b1190c0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
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

0 comments on commit b1190c0

Please sign in to comment.