74fe70855f
warning: missing `#[must_use]` attribute on a method returning `Self` --> serde_derive_internals/src/attr.rs:204:5 | 204 | / pub fn or(self, other_rules: Self) -> Self { 205 | | Self { 206 | | serialize: self.serialize.or(other_rules.serialize), 207 | | deserialize: self.deserialize.or(other_rules.deserialize), 208 | | } 209 | | } | |_____^ | = help: consider adding the `#[must_use]` attribute to the method or directly to the `Self` type = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use = note: `-W clippy::return-self-not-must-use` implied by `-W clippy::pedantic` warning: missing `#[must_use]` attribute on a method returning `Self` --> serde_derive_internals/src/case.rs:112:5 | 112 | / pub fn or(self, rule_b: Self) -> Self { 113 | | match self { 114 | | None => rule_b, 115 | | _ => self, 116 | | } 117 | | } | |_____^ | = help: consider adding the `#[must_use]` attribute to the method or directly to the `Self` type = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
50 lines
1.6 KiB
Rust
50 lines
1.6 KiB
Rust
#![doc(html_root_url = "https://docs.rs/serde_derive_internals/0.28.0")]
|
|
// Ignored clippy lints
|
|
#![allow(
|
|
clippy::cognitive_complexity,
|
|
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/7575
|
|
clippy::collapsible_match,
|
|
clippy::derive_partial_eq_without_eq,
|
|
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797
|
|
clippy::manual_map,
|
|
clippy::missing_panics_doc,
|
|
clippy::redundant_field_names,
|
|
clippy::result_unit_err,
|
|
clippy::should_implement_trait,
|
|
clippy::trivially_copy_pass_by_ref,
|
|
clippy::wildcard_in_or_patterns,
|
|
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704
|
|
clippy::unnested_or_patterns,
|
|
)]
|
|
// Ignored clippy_pedantic lints
|
|
#![allow(
|
|
clippy::doc_markdown,
|
|
clippy::enum_glob_use,
|
|
clippy::items_after_statements,
|
|
clippy::let_underscore_untyped,
|
|
clippy::manual_assert,
|
|
clippy::match_same_arms,
|
|
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6984
|
|
clippy::match_wildcard_for_single_variants,
|
|
clippy::missing_errors_doc,
|
|
clippy::module_name_repetitions,
|
|
clippy::must_use_candidate,
|
|
clippy::return_self_not_must_use,
|
|
clippy::similar_names,
|
|
clippy::single_match_else,
|
|
clippy::struct_excessive_bools,
|
|
clippy::too_many_lines,
|
|
clippy::unused_self,
|
|
clippy::wildcard_imports
|
|
)]
|
|
|
|
extern crate proc_macro2;
|
|
extern crate quote;
|
|
extern crate syn;
|
|
|
|
#[cfg_attr(serde_build_from_git, path = "../serde_derive/src/internals/mod.rs")]
|
|
#[cfg_attr(not(serde_build_from_git), path = "src/mod.rs")]
|
|
mod internals;
|
|
|
|
pub use internals::*;
|