Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dtolnay/serde-yaml
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.9.13
Choose a base ref
...
head repository: dtolnay/serde-yaml
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.9.14
Choose a head ref
  • 6 commits
  • 6 files changed
  • 1 contributor

Commits on Sep 15, 2022

  1. Pull in unsafe-libyaml 0.2.4

    To eliminate segfault on OOM (dtolnay/unsafe-libyaml#18)
    dtolnay committed Sep 15, 2022
    Configuration menu
    Copy the full SHA
    31fa98e View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2022

  1. Ignore uninlined_format_args pedantic clippy lint

        error: variables can be used directly in the `format!` string
           --> src/de.rs:999:24
            |
        999 |         let negative = format!("-{}", rest);
            |                        ^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
            = note: `-D clippy::uninlined-format-args` implied by `-D clippy::pedantic`
        help: change this to
            |
        999 -         let negative = format!("-{}", rest);
        999 +         let negative = format!("-{rest}");
            |
    
        error: variables can be used directly in the `format!` string
            --> src/de.rs:1013:24
             |
        1013 |         let negative = format!("-{}", rest);
             |                        ^^^^^^^^^^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
             |
        1013 -         let negative = format!("-{}", rest);
        1013 +         let negative = format!("-{rest}");
             |
    
        error: variables can be used directly in the `format!` string
            --> src/de.rs:1027:24
             |
        1027 |         let negative = format!("-{}", rest);
             |                        ^^^^^^^^^^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
             |
        1027 -         let negative = format!("-{}", rest);
        1027 +         let negative = format!("-{rest}");
             |
    
        error: variables can be used directly in the `format!` string
            --> src/de.rs:1043:24
             |
        1043 |         let negative = format!("-{}", rest);
             |                        ^^^^^^^^^^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
             |
        1043 -         let negative = format!("-{}", rest);
        1043 +         let negative = format!("-{rest}");
             |
    
        error: variables can be used directly in the `format!` string
            --> src/de.rs:1049:24
             |
        1049 |         let negative = format!("-{}", rest);
             |                        ^^^^^^^^^^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
             |
        1049 -         let negative = format!("-{}", rest);
        1049 +         let negative = format!("-{rest}");
             |
    
        error: variables can be used directly in the `format!` string
            --> src/de.rs:1055:24
             |
        1055 |         let negative = format!("-{}", rest);
             |                        ^^^^^^^^^^^^^^^^^^^^
             |
             = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
             |
        1055 -         let negative = format!("-{}", rest);
        1055 +         let negative = format!("-{rest}");
             |
    
        error: variables can be used directly in the `format!` string
           --> src/error.rs:210:21
            |
        210 |                     write!(f, "{}: ", path)?;
            |                     ^^^^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
            |
        210 -                     write!(f, "{}: ", path)?;
        210 +                     write!(f, "{path}: ")?;
            |
    
        error: variables can be used directly in the `format!` string
           --> src/error.rs:252:25
            |
        252 |                         write!(f, " at {}", mark)?;
            |                         ^^^^^^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
            |
        252 -                         write!(f, " at {}", mark)?;
        252 +                         write!(f, " at {mark}")?;
            |
    
        error: variables can be used directly in the `format!` string
           --> src/libyaml/cstr.rs:119:21
            |
        119 |                     write!(formatter, "\\x{:02x}", b)?;
            |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
            |
        119 -                     write!(formatter, "\\x{:02x}", b)?;
        119 +                     write!(formatter, "\\x{b:02x}")?;
            |
    
        error: variables can be used directly in the `format!` string
          --> src/libyaml/error.rs:74:13
           |
        74 |             write!(formatter, ", {}", context)?;
           |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
           |
        74 -             write!(formatter, ", {}", context)?;
        74 +             write!(formatter, ", {context}")?;
           |
    
        error: variables can be used directly in the `format!` string
          --> src/libyaml/error.rs:99:38
           |
        99 |             formatter.field("kind", &format_args!("{}", kind));
           |                                      ^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
           |
        99 -             formatter.field("kind", &format_args!("{}", kind));
        99 +             formatter.field("kind", &format_args!("{kind}"));
           |
    
        error: variables can be used directly in the `format!` string
           --> src/mapping.rs:764:37
            |
        764 |             Value::Bool(boolean) => write!(formatter, "with key `{}`", boolean),
            |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
            |
        764 -             Value::Bool(boolean) => write!(formatter, "with key `{}`", boolean),
        764 +             Value::Bool(boolean) => write!(formatter, "with key `{boolean}`"),
            |
    
        error: variables can be used directly in the `format!` string
           --> src/mapping.rs:765:38
            |
        765 |             Value::Number(number) => write!(formatter, "with key {}", number),
            |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
            |
        765 -             Value::Number(number) => write!(formatter, "with key {}", number),
        765 +             Value::Number(number) => write!(formatter, "with key {number}"),
            |
    
        error: variables can be used directly in the `format!` string
           --> src/mapping.rs:766:38
            |
        766 |             Value::String(string) => write!(formatter, "with key {:?}", string),
            |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
            |
        766 -             Value::String(string) => write!(formatter, "with key {:?}", string),
        766 +             Value::String(string) => write!(formatter, "with key {string:?}"),
            |
    
        error: variables can be used directly in the `format!` string
          --> src/path.rs:21:29
           |
        21 |                     path => write!(formatter, "{}.", path),
           |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
           |
        21 -                     path => write!(formatter, "{}.", path),
        21 +                     path => write!(formatter, "{path}."),
           |
    
        error: variables can be used directly in the `format!` string
          --> src/path.rs:28:44
           |
        28 |             Path::Seq { parent, index } => write!(formatter, "{}[{}]", parent, index),
           |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
           |
        28 -             Path::Seq { parent, index } => write!(formatter, "{}[{}]", parent, index),
        28 +             Path::Seq { parent, index } => write!(formatter, "{parent}[{index}]"),
           |
    
        error: variables can be used directly in the `format!` string
          --> src/path.rs:29:42
           |
        29 |             Path::Map { parent, key } => write!(formatter, "{}{}", Parent(parent), key),
           |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
           |
        29 -             Path::Map { parent, key } => write!(formatter, "{}{}", Parent(parent), key),
        29 +             Path::Map { parent, key } => write!(formatter, "{}{key}", Parent(parent)),
           |
    
        error: variables can be used directly in the `format!` string
          --> src/path.rs:30:39
           |
        30 |             Path::Alias { parent } => write!(formatter, "{}", parent),
           |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
           |
        30 -             Path::Alias { parent } => write!(formatter, "{}", parent),
        30 +             Path::Alias { parent } => write!(formatter, "{parent}"),
           |
    
        error: variables can be used directly in the `format!` string
         --> src/value/debug.rs:9:37
          |
        9 |             Value::Bool(boolean) => write!(formatter, "Bool({})", boolean),
          |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          |
          = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
          |
        9 -             Value::Bool(boolean) => write!(formatter, "Bool({})", boolean),
        9 +             Value::Bool(boolean) => write!(formatter, "Bool({boolean})"),
          |
    
        error: variables can be used directly in the `format!` string
          --> src/value/debug.rs:10:38
           |
        10 |             Value::Number(number) => write!(formatter, "Number({})", number),
           |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
           |
        10 -             Value::Number(number) => write!(formatter, "Number({})", number),
        10 +             Value::Number(number) => write!(formatter, "Number({number})"),
           |
    
        error: variables can be used directly in the `format!` string
          --> src/value/debug.rs:11:38
           |
        11 |             Value::String(string) => write!(formatter, "String({:?})", string),
           |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
           |
        11 -             Value::String(string) => write!(formatter, "String({:?})", string),
        11 +             Value::String(string) => write!(formatter, "String({string:?})"),
           |
    
        error: variables can be used directly in the `format!` string
          --> src/value/debug.rs:32:9
           |
        32 |         write!(formatter, "Number({})", self)
           |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
           |
        32 -         write!(formatter, "Number({})", self)
        32 +         write!(formatter, "Number({self})")
           |
    
        error: variables can be used directly in the `format!` string
          --> src/value/index.rs:60:22
           |
        60 |                 _ => panic!("cannot access index {} of YAML {}", self, Type(v)),
           |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
           |
           = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
           |
        60 -                 _ => panic!("cannot access index {} of YAML {}", self, Type(v)),
        60 +                 _ => panic!("cannot access index {self} of YAML {}", Type(v)),
           |
    
        error: variables can be used directly in the `format!` string
           --> src/value/index.rs:107:18
            |
        107 |             _ => panic!("cannot access key {:?} in YAML {}", index, Type(v)),
            |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
            |
        107 -             _ => panic!("cannot access key {:?} in YAML {}", index, Type(v)),
        107 +             _ => panic!("cannot access key {index:?} in YAML {}", Type(v)),
            |
    
        error: variables can be used directly in the `format!` string
           --> src/value/tagged.rs:372:36
            |
        372 |     fmt::write(&mut check_for_tag, format_args!("{}", value)).unwrap();
            |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
            |
        372 -     fmt::write(&mut check_for_tag, format_args!("{}", value)).unwrap();
        372 +     fmt::write(&mut check_for_tag, format_args!("{value}")).unwrap();
            |
    
        error: variables can be used directly in the `format!` string
           --> tests/test_value.rs:112:17
            |
        112 |     let debug = format!("{:#?}", value);
            |                 ^^^^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
            = note: `-D clippy::uninlined-format-args` implied by `-D clippy::pedantic`
        help: change this to
            |
        112 -     let debug = format!("{:#?}", value);
        112 +     let debug = format!("{value:#?}");
            |
    
        error: variables can be used directly in the `format!` string
           --> tests/test_de.rs:427:18
            |
        427 |             _ => panic!("expected number. input={:?}, result={:?}", yaml, value),
            |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
            = note: `-D clippy::uninlined-format-args` implied by `-D clippy::pedantic`
        help: change this to
            |
        427 -             _ => panic!("expected number. input={:?}, result={:?}", yaml, value),
        427 +             _ => panic!("expected number. input={yaml:?}, result={value:?}"),
            |
    
        error: variables can be used directly in the `format!` string
           --> tests/test_de.rs:440:18
            |
        440 |             _ => panic!("expected string. input={:?}, result={:?}", yaml, value),
            |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            |
            = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
        help: change this to
            |
        440 -             _ => panic!("expected string. input={:?}, result={:?}", yaml, value),
        440 +             _ => panic!("expected string. input={yaml:?}, result={value:?}"),
            |
    dtolnay committed Oct 8, 2022
    Configuration menu
    Copy the full SHA
    516fdff View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2022

  1. Configuration menu
    Copy the full SHA
    c5523fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    371f764 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #339 from dtolnay/deserializertaggedvalue

    Implement Deserializer for TaggedValue and &TaggedValue
    dtolnay authored Oct 21, 2022
    Configuration menu
    Copy the full SHA
    8d95125 View commit details
    Browse the repository at this point in the history
  4. Release 0.9.14

    dtolnay committed Oct 21, 2022
    Configuration menu
    Copy the full SHA
    8948d36 View commit details
    Browse the repository at this point in the history
Loading