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
Allow floats to be deserialized from ints in tagged unions, part 2 #1
Commits on Dec 18, 2019
Commits on Dec 19, 2019
Commits on Jan 15, 2020
Commits on Jan 17, 2020
-
remove the tiny bit of unsafe code
James McGlashan committedJan 17, 2020 -
Merge pull request serde-rs#1721 from WildCryptoFox/remove-unsafe-code
remove the tiny bit of unsafe code
Commits on Jan 18, 2020
Commits on Jan 25, 2020
-
These are left over from a series of unfortunate rustfmt interactions. serde-rs@ee75e6c#diff-c052b162f01a664f8184ef1855d1f1cfL767-R735 serde-rs@cc2558b#diff-c052b162f01a664f8184ef1855d1f1cfL733-R738 serde-rs@9f38ca0#diff-c052b162f01a664f8184ef1855d1f1cfL779-R782
Commits on Feb 8, 2020
Commits on Feb 13, 2020
Commits on Feb 27, 2020
Commits on Mar 6, 2020
Commits on Mar 17, 2020
Commits on Mar 18, 2020
-
-
Merge pull request serde-rs#1754 from maciejhirsz/non-std-cow-borrow
Allow #[serde(borrow)] for non-std Cow
-
Commits on Mar 28, 2020
-
-
Merge pull request serde-rs#1764 from serde-rs/collect
Simplify default Serializer::collect_str implementation
Commits on Apr 3, 2020
-
-
Merge pull request serde-rs#1768 from robo9k/dummy-const-hidden-doc
Hide generated dummy const in rustdoc
-
Commits on Apr 6, 2020
Commits on Apr 20, 2020
Commits on Apr 23, 2020
Commits on May 2, 2020
-
Remove CI badge from Cargo.toml
Support for badges has been deprecated by crates.io.
Commits on May 3, 2020
-
-
Merge pull request serde-rs#1795 from serde-rs/actions
Enable GitHub Actions
Commits on May 4, 2020
-
Try caching Cargo index to speed up 1.13 build
This one build always took several (10+) minutes on: Updating registry `https://github.com/rust-lang/crates.io-index`
Commits on May 5, 2020
-
-
-
Split test suite to its own Actions job
Since this step takes the longest.
-
Commits on May 6, 2020
-
Remove clippy from main CI workflow
We don't run clippy on PRs. It is covered by a separate clippy.yml workflow.
-
-
-
-
-
-
-
-
Exclude expansion tests from test suite by default
This test isn't high enough signal to have all contributors run it.
-
Commits on May 8, 2020
-
-
-
Merge pull request serde-rs#1805 from dtolnay/skip
Fix indexing bug when `skip` and `other` are combined
-
Commits on May 10, 2020
-
-
-
Move the Formatter Serializer to a module
Let's keep impls.rs for Serialize impls, which there are enough of already.
-
-
Directly display to the Formatter
This allows formatter flags to take effect.
-
Allow serializing newtype struct to Formatter
Serialize_newtype_struct is typically expected to just pass through the wrapped value.
-
-
-
-
-
-
Allow optional content field for adjacently tagged newtype variants
* Deserialize adjacently tagged newtype variants with optional content as None instead of erroring when content field is missing * refactor to remove duplicate code and remove panic
-
-
-
-
Fix borrow error on pre-NLL compilers
error[E0506]: cannot assign to `missing_content` because it is borrowed --> serde_derive/src/de.rs:1414:9 | 1388 | .filter_map(|(i, variant)| { | -------------- borrow of `missing_content` occurs here ... 1414 | / missing_content = quote! { 1415 | | match __field { 1416 | | #(#missing_content_arms)* 1417 | | #missing_content_fallthrough 1418 | | } 1419 | | }; | |_________^ assignment to borrowed `missing_content` occurs here error[E0502]: cannot borrow `missing_content_fallthrough` as immutable because it is also borrowed as mutable --> serde_derive/src/de.rs:1414:27 | 1388 | .filter_map(|(i, variant)| { | -------------- mutable borrow occurs here ... 1404 | missing_content_fallthrough = quote!(_ => #missing_content); | --------------------------- previous borrow occurs due to use of `missing_content_fallthrough` in closure ... 1414 | missing_content = quote! { | ___________________________^ 1415 | | match __field { 1416 | | #(#missing_content_arms)* 1417 | | #missing_content_fallthrough 1418 | | } 1419 | | }; | |_________^ immutable borrow occurs here ... 1622 | } | - mutable borrow ends here | = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
-
-
Merge pull request serde-rs#1807 from dtolnay/31
Add a CI builder on 1.31.0
-
-
-
-
-
-
-
Merge pull request serde-rs#1808 from dtolnay/help
Update 'Getting help' section
Commits on May 16, 2020
Commits on May 22, 2020
Commits on May 30, 2020
-
-
-
-
Merge pull request serde-rs#1821 from dtolnay/ungroup
Look inside of None-delimited groups when examining types
-
Commits on Jun 10, 2020
-
No need to specify Cargo.toml in package.include
Cargo.toml is always included in the published crate.
Commits on Jun 11, 2020
Commits on Jun 14, 2020
-
-
Merge pull request serde-rs#1839 from dtolnay/entry
Forward serialize_entry on flattened maps
-
Commits on Jun 16, 2020
-
Add FlexBuffers to serde ecosystem list
Add FlexBuffers to serde ecosystem list
Commits on Jun 19, 2020
-
Merge pull request serde-rs#1840 from rw/patch-1
Add FlexBuffers to serde ecosystem list
-
-
Merge pull request serde-rs#1827 from taiki-e/underscore_consts
Use underscore consts on Rust 1.37+
-
-
Commits on Jun 21, 2020
-
-
Merge pull request serde-rs#1841 from dtolnay/lenhint
Remove len hint specialization
-
-
-
Remove error_on_line_overflow rustfmt setting
No longer seeing warnings on this from rustfmt.
Commits on Jun 22, 2020
-
-
-
Allow floats to be deserialized from ints in tagged unions
Tim Hutt committedJun 22, 2020
Commits on Jun 27, 2020
-
Suppress mixed_script_confusables in test suite
error: The usage of Script Group `Greek` in this crate consists solely of mixed script confusables --> test_suite/tests/test_gen.rs:269:9 | 269 | σ: f64, | ^ | note: the lint level is defined here --> test_suite/tests/test_gen.rs:5:9 | 5 | #![deny(warnings)] | ^^^^^^^^ = note: `#[deny(mixed_script_confusables)]` implied by `#[deny(warnings)]` = note: The usage includes 'σ' (U+03C3). = note: Please recheck to make sure their usages are indeed what you want.
-
Suppress unknown_lints warning in test suite
When building with beta and older rustc: error: unknown lint: `mixed_script_confusables` --> test_suite/tests/test_gen.rs:7:10 | 7 | #![allow(mixed_script_confusables, clippy::trivially_copy_pass_by_ref)] | ^^^^^^^^^^^^^^^^^^^^^^^^ | note: the lint level is defined here --> test_suite/tests/test_gen.rs:5:9 | 5 | #![deny(warnings)] | ^^^^^^^^ = note: `#[deny(unknown_lints)]` implied by `#[deny(warnings)]`
-
Suppress unused_attributes warning in test suite
This test has multiple #[ignore] attributes in some configurations. $ cargo +beta check --test expandtest warning: unused attribute --> test_suite/tests/expandtest.rs:2:29 | 2 | #[cfg_attr(not(expandtest), ignore)] | ^^^^^^ | = note: `#[warn(unused_attributes)]` on by default
Commits on Jul 5, 2020
-
Drop 'help or discussion' issue template
Per https://github.com/serde-rs/serde#getting-help we're steering these to Discord / Stack Overflow / Reddit / etc. Can reconsider when GitHub Discussions is out of beta (https://github.com/vercel/next.js/discussions).
Commits on Jul 6, 2020
Commits on Jul 15, 2020
Commits on Jul 16, 2020
Commits on Aug 10, 2020
Commits on Aug 28, 2020
-
-
Merge pull request serde-rs#1882 from dtolnay/bincode
Rename TyOverby/bincode to servo/bincode
Commits on Sep 5, 2020
-
-
Merge pull request serde-rs#1885 from dtolnay/qs
Replace serde_urlencoded link with serde_qs
-
Commits on Sep 11, 2020
-
Fix hand-written enum variant deserializations to allow u64 discriminant
Automatically generated enum variant deserializers allowed any integer type as the discriminant, but the hand-written ones for specific enum types such as Result or IpAddr only allowed types up to u32. This broke some non-human-readable deserializers for these enums, with deserializers that emit any integer type as a u64. Switch the visit_u32 methods to visit_u64 methods to allow discriminants to have any size up to a u64.
-
Merge pull request serde-rs#1888 from joshtriplett/fix-enum-deseriali…
…zation-u64 Fix hand-written enum variant deserializations to allow u64 discriminant
-
Commits on Sep 26, 2020
Commits on Oct 3, 2020
Commits on Oct 4, 2020
Commits on Oct 5, 2020
Commits on Oct 11, 2020
-
-
Merge pull request serde-rs#1906 from Mingun/fix-misprint
Fix misprint in the error message
Commits on Oct 15, 2020
Commits on Oct 21, 2020
Commits on Oct 22, 2020
-
Implement IdentifierDeserializer for u64 instead of u32 because all i…
…dentifiers deserialized with visit_u64
-
Allow field identifiers be any numbers if
#[serde(other)]
is usedThus behavior synchronized between string/bytes identifiers and numeric identifiers
-
Allow borrowed and owned strings and bytes and u8, u16, u64 for varia…
…nt keys in serde_test
-
Allow to run assert_de_tokens_error on token sequence that is not exp…
…ected by enum deserializer Before that fix following code panics, because `Token::Unit` was unexpected by test deserializer: ``` #[derive(Deserialize)] enum E { ... } assert_de_tokens_error::<E>(&[Token::Unit], "..."); ```
-
Allow to define custom expectation message for type with `#[serde(exp…
…ecting = "...")]` Closes serde-rs#1883
Commits on Oct 23, 2020
-
-
Introduce a forward_deserializer macro.
It helps to create deserializers that can stop time: save the value and then use visitor to get it later!
-
-
Commits on Oct 27, 2020
-
Fix incorrect messages in serialized tokens assertions
Serializer contains expected tokens, called methods provide actual tokens
-
Forward Readable|Compact next_entry_seed to underlying next_entry_see…
…d instead of usage of default implementation Difference is noticeable for deserializers that rely on call of next_entry_seed (for example, current quick-xml supports only next_entry_seed)
Commits on Oct 28, 2020
-
error: use `std::ptr::eq` when comparing raw pointers --> serde_derive/src/de.rs:362:12 | 362 | if field as *const Field == transparent_field as *const Field { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::ptr::eq(field, transparent_field)` | note: the lint level is defined here --> serde_derive/src/lib.rs:18:9 | 18 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^ = note: `#[deny(clippy::ptr_eq)]` implied by `#[deny(clippy::all)]` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_eq
-
-
Show correct location in error messages by tracking caller of utility…
… `assert_tokens` functions
Commits on Oct 31, 2020
Commits on Nov 24, 2020
Commits on Nov 29, 2020
-
-
Resolve clippy items_after_statements lint
error: adding items after statements is confusing, since items exist from the start of the scope --> serde/src/de/impls.rs:1876:9 | 1876 | / impl<'de> Deserialize<'de> for Field { 1877 | | fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> 1878 | | where 1879 | | D: Deserializer<'de>, ... | 1917 | | } 1918 | | } | |_________^ | note: the lint level is defined here --> serde/src/lib.rs:95:52 | 95 | #![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))] | ^^^^^^^^^^^^^^^ = note: `#[deny(clippy::items_after_statements)]` implied by `#[deny(clippy::pedantic)]` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements error: adding items after statements is confusing, since items exist from the start of the scope --> serde/src/de/impls.rs:1920:9 | 1920 | struct DurationVisitor; | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements error: adding items after statements is confusing, since items exist from the start of the scope --> serde/src/de/impls.rs:1922:9 | 1922 | / impl<'de> Visitor<'de> for DurationVisitor { 1923 | | type Value = Duration; 1924 | | 1925 | | fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { ... | 1979 | | } 1980 | | } | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements error: adding items after statements is confusing, since items exist from the start of the scope --> serde/src/de/impls.rs:1982:9 | 1982 | const FIELDS: &'static [&'static str] = &["secs", "nanos"]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements error: adding items after statements is confusing, since items exist from the start of the scope --> serde/src/de/impls.rs:2001:9 | 2001 | / impl<'de> Deserialize<'de> for Field { 2002 | | fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> 2003 | | where 2004 | | D: Deserializer<'de>, ... | 2042 | | } 2043 | | } | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements error: adding items after statements is confusing, since items exist from the start of the scope --> serde/src/de/impls.rs:2045:9 | 2045 | struct DurationVisitor; | ^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements error: adding items after statements is confusing, since items exist from the start of the scope --> serde/src/de/impls.rs:2047:9 | 2047 | / impl<'de> Visitor<'de> for DurationVisitor { 2048 | | type Value = Duration; 2049 | | 2050 | | fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { ... | 2108 | | } 2109 | | } | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements error: adding items after statements is confusing, since items exist from the start of the scope --> serde/src/de/impls.rs:2111:9 | 2111 | const FIELDS: &'static [&'static str] = &["secs_since_epoch", "nanos_since_epoch"]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
Commits on Dec 5, 2020
-
Merge pull request serde-rs#1926 from attente/core-num-wrapping
Allow serializing of Wrapping without std
-
Commits on Dec 21, 2020
-
-
Merge pull request serde-rs#1936 from bryanburgers/add-serde-dynamo
Add serde_dynamo to the list of data formats
-
Switch to short form for serde.rs link in rustdoc
Fixes a rustdoc warning: warning: unneeded long form for URL --> serde/src/lib.rs:12:27 | 12 | //! See the Serde website [https://serde.rs/] for additional documentation and | ^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://serde.rs/>` | = note: `#[warn(non_autolinks)]` on by default
Commits on Jan 4, 2021
Commits on Jan 9, 2021
-
-
Make it clearer that the private implementation details are private
Both of these modules are doc(hidden) and commented "Not public API", but incorrect downstream code sometimes still references them. Naming the module __private will make it more likely to be noticed in code review.
-
Restore compatibility with rustc 1.13.0
error[E0432]: unresolved import `private::de::size_hint` --> src/de/value.rs:28:5 | 28 | use private::de::size_hint; | ^^^^^^^^^^^^^^^^^^^^^^ Maybe a missing `extern crate private`?
Commits on Jan 11, 2021
Commits on Jan 12, 2021
-
refactor: Merge multiple FromStr visitors to a single FromStrVisitor
Only refactors, doesn't actually expose this visitor
Markus Westerlind committedJan 12, 2021 -
-
Merge pull request serde-rs#1948 from Marwes/from_str
refactor: Merge multiple FromStr visitors to a single FromStrVisitor
Commits on Jan 19, 2021
-
Add 128-bit integer support to de::IgnoredAny
This fixes the errors that occur when IgnoredAny is deserialized from anything containing a 128-bit integer somewhere. As IgnoredAny is used in serde_derive to skip ignored fields in structs, these errors currently prevent parsing of structs with an ignored field containing a 128-bit integer in the serialization.
-
Merge pull request serde-rs#1955 from TheJokr/patch-1
Add 128-bit integer support to de::IgnoredAny
-
Commits on Jan 20, 2021
-
Prevent panic when deserializing malformed Duration
std::time::Duration::new can panic. There is no alternative non-panicing constructor. Check the panic condition beforehand and return an error instead of panicing. Fixes serde-rs#1933
Commits on Jan 23, 2021
-
Merge pull request serde-rs#1958 from jonasbb/duration-panic
Prevent panic when deserializing malformed Duration
-
-
-
-
Undo macro exports from PR serde-rs#1917
All of these macros are only used internally within the serde crate. There is no need for them to have #[macro_export] and need to be hidden from docs.
-
Inline forward_deserializer into private::de for Str deserializers
We shouldn't try to use the same macro for public and private types. The API for a private type can usually be pared much further down to save compile time, such as Debug and Copy and Clone impls.
-
-
-
-
Merge pull request serde-rs#1959 from serde-rs/1917
Touch up borrowed field identifiers PR
-
-
-
-
Move RenameRule parse from trait fn to associated
This will allow updating it to return an Err that borrows the input string, which is not possible with FromStr.
-
-
-
Merge pull request serde-rs#1960 from serde-rs/renamerule
Deduplicate RenameRule parse error message generation
-
Parse rename rules based on table of rules
This will make it possible to reuse the same table of recognized rules in the parse error message.
-
Fix UPPERCASE rename rule variant to follow idiomatic variant naming
This shouldn't have been named this way in PR serde-rs#1132.
-
-
Restore compatibility with rustc 1.31 in RenameRule error
str::escape_debug wasn't stabilized until 1.34, whereas serde_derive currently supports an oldest version of 1.31.
-
Merge pull request serde-rs#1961 from serde-rs/renamerule
Provide list of recognized rename rules on parse error
-
Merge pull request serde-rs#1920 from Mingun/track_caller
Show correct location in error messages by tracking caller of utility `assert_tokens` functions
-
-
Keep conditional compilation cfg naming consistent with serde crate
The serde crate's build.rs uses names like `core_duration` or `integer128`, not `has_core_duration` / `has_integer128`.
-
Merge pull request serde-rs#1918 from Mingun/fix-serde-test
Fix incorrect message in serializer tokens and correctly implement next_entry_seed
Commits on Jan 24, 2021
-
-
-
Ignore too_many_lines clippy pedantic lint in serde_test
error: this function has too many lines (107/100) --> serde_test/src/de.rs:128:5 | 128 | / fn deserialize_any<V>(self, visitor: V) -> Result<V::Value, Error> 129 | | where 130 | | V: Visitor<'de>, 131 | | { ... | 238 | | } 239 | | } | |_____^ | note: the lint level is defined here --> serde_test/src/lib.rs:149:52 | 149 | #![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))] | ^^^^^^^^^^^^^^^ = note: `#[deny(clippy::too_many_lines)]` implied by `#[deny(clippy::pedantic)]` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines
-
Return IdentifierDeserializer to just one associated type
The BorrowedDeserializer was added in serde-rs#1917, but only makes sense for &str and &[u8], not for u64 which also needs to be have an IdentifierDeserializer impl.
-
Restore compatibility with rustc <1.31 in Borrowed identifier deseria…
…lizer The implied lifetime bound on T only works on 1.31+. Older versions fail with: error[E0309]: the parameter type `T` may not live long enough --> serde/src/private/de.rs:2548:37 | 2548 | pub struct Borrowed<'de, T: ?Sized>(pub &'de T); | -- ^^^^^^^^^^ | | | help: consider adding an explicit lifetime bound `T: 'de`... | note: ...so that the reference type `&'de T` does not outlive the data it points at --> serde/src/private/de.rs:2548:37 | 2548 | pub struct Borrowed<'de, T: ?Sized>(pub &'de T); | ^^^^^^^^^^
-
Revert "Regenerate macrotest outputs for PR serde-rs#1917"
This reverts commit 999b94d.
-
Merge pull request serde-rs#1962 from serde-rs/dupborrowed
Eliminate duplicated borrowed and non-borrowed identifier deserialization
-
-
-
-
-
-
-
-
-
Merge pull request serde-rs#1963 from serde-rs/valuedebug
Eliminate inferred bound on error type of value deserializer Debug impls
-
-
Remove dependency on syn/visit feature
The builtin visitor is fairly expensive to compile (3700 lines of code), particularly if something else in the dependency graph also enables syn/full. For the usage in serde_derive, it turns out to be easy to replace.
Commits on Jan 25, 2021
-
Suppress clippy unused_self pedantic lint
This usage is fine. It's mirroring trait signatures in syn::visit::Visit. error: unused `self` argument --> serde_derive/src/bound.rs:241:24 | 241 | fn visit_macro(&mut self, _mac: &'ast syn::Macro) {} | ^^^^^^^^^ | note: the lint level is defined here --> serde_derive/src/lib.rs:18:22 | 18 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[deny(clippy::unused_self)]` implied by `#[deny(clippy::pedantic)]` = help: consider refactoring to a associated function = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
-
Suppress clippy should_implement_trait lint
I think there is no ambiguity in from_str as a method name so "choose a less ambiguous method name" is unnecessary, and it can't be a FromStr impl in this case because FromStr's error type cannot borrow from the input string slice. warning: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str` --> serde_derive_internals/src/case.rs:50:5 | 50 | / pub fn from_str(rename_all_str: &str) -> Result<Self, ParseError> { 51 | | for (name, rule) in RENAME_RULES { 52 | | if rename_all_str == *name { 53 | | return Ok(*rule); ... | 58 | | }) 59 | | } | |_____^ | = note: `#[warn(clippy::should_implement_trait)]` on by default = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait
-
-
-
-
-
Merge pull request serde-rs#1965 from serde-rs/int
Reduce post-macro-expansion code in integer deserialize impls
-
Merge pull request serde-rs#1842 from Timmmm/fix2
Allow floats to be deserialized from ints in tagged unions
-
Merge pull request serde-rs#1831 from taiki-e/borrow-macro
Collect lifetimes inside macro invocations
-
-
-
-
Merge pull request serde-rs#1966 from serde-rs/private
Omit derive helpers in versions older than serde_derive msrv
-
-
-
-
Unlike expr macros, macros in type position in a derive input are rare enough that it's not worth supporting for an issue that has such an easy workaround (just replace `Self` in the macro input with your type name).
-
-
-
-
Ignore some pedantic lints in serde_derive_internals from PR 1830
error: item name ends with its containing module's name --> serde_derive_internals/src/receiver.rs:11:1 | 11 | / pub fn replace_receiver(input: &mut DeriveInput) { 12 | | let self_ty = { 13 | | let ident = &input.ident; 14 | | let ty_generics = input.generics.split_for_impl().1; ... | 19 | | visitor.visit_data_mut(&mut input.data); 20 | | } | |_^ | note: the lint level is defined here --> serde_derive_internals/lib.rs:3:22 | 3 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[deny(clippy::module_name_repetitions)]` implied by `#[deny(clippy::pedantic)]` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions error: binding's name is too similar to existing binding --> serde_derive_internals/src/receiver.rs:31:29 | 31 | fn self_to_qself(&self, qself: &mut Option<QSelf>, path: &mut Path) { | ^^^^^ | note: the lint level is defined here --> serde_derive_internals/lib.rs:3:22 | 3 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[deny(clippy::similar_names)]` implied by `#[deny(clippy::pedantic)]` note: existing binding defined here --> serde_derive_internals/src/receiver.rs:31:23 | 31 | fn self_to_qself(&self, qself: &mut Option<QSelf>, path: &mut Path) { | ^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#similar_names error: unused `self` argument --> serde_derive_internals/src/receiver.rs:286:24 | 286 | fn visit_macro_mut(&mut self, _mac: &mut Macro) {} | ^^^^^^^^^ | note: the lint level is defined here --> serde_derive_internals/lib.rs:3:22 | 3 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[deny(clippy::unused_self)]` implied by `#[deny(clippy::pedantic)]` = help: consider refactoring to a associated function = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_self
-
-
-
Merge pull request serde-rs#1970 from serde-rs/self
Support `Self` inside fields that use serialize_with
-