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.31
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.32
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Jan 29, 2024

  1. Replace curly quotes with ascii straight quotes

    Markdown takes care of rendering these to a curly quote.
    dtolnay committed Jan 29, 2024

    Unverified

    No user is associated with the committer email.
    Copy the full SHA
    9e0b8d3 View commit details

Commits on Feb 19, 2024

  1. Resolve prelude redundant import warnings

        warning: the item `FromIterator` is imported redundantly
           --> src/mapping.rs:10:5
            |
        10  | use std::iter::FromIterator;
            |     ^^^^^^^^^^^^^^^^^^^^^^^
            |
           ::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:129:13
            |
        129 |     pub use core::prelude::rust_2021::*;
            |             ------------------------ the item `FromIterator` is already defined here
            |
            = note: `#[warn(unused_imports)]` on by default
    
        warning: the item `FromIterator` is imported redundantly
           --> src/value/from.rs:148:5
            |
        148 | use std::iter::FromIterator;
            |     ^^^^^^^^^^^^^^^^^^^^^^^
            |
           ::: nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/prelude/mod.rs:129:13
            |
        129 |     pub use core::prelude::rust_2021::*;
            |             ------------------------ the item `FromIterator` is already defined here
    dtolnay committed Feb 19, 2024

    Unverified

    No user is associated with the committer email.
    Copy the full SHA
    a52b7ac View commit details
  2. Release 0.9.32

    dtolnay committed Feb 19, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ea57d8c View commit details
Showing with 5 additions and 8 deletions.
  1. +1 −1 Cargo.toml
  2. +1 −1 src/lib.rs
  3. +3 −4 src/mapping.rs
  4. +0 −2 src/value/from.rs
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "serde_yaml"
version = "0.9.31"
version = "0.9.32"
authors = ["David Tolnay <dtolnay@gmail.com>"]
categories = ["encoding", "parser-implementations"]
description = "YAML data format for Serde"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@
//! }
//! ```
#![doc(html_root_url = "https://docs.rs/serde_yaml/0.9.31")]
#![doc(html_root_url = "https://docs.rs/serde_yaml/0.9.32")]
#![deny(missing_docs, unsafe_op_in_unsafe_fn)]
// Suppressed clippy_pedantic lints
#![allow(
7 changes: 3 additions & 4 deletions src/mapping.rs
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@ use std::cmp::Ordering;
use std::collections::hash_map::DefaultHasher;
use std::fmt::{self, Display};
use std::hash::{Hash, Hasher};
use std::iter::FromIterator;
use std::mem;

/// A YAML mapping in which the keys and values are both `serde_yaml::Value`.
@@ -76,7 +75,7 @@ impl Mapping {
index.index_into_mut(self)
}

/// Gets the given keys corresponding entry in the map for insertion and/or
/// Gets the given key's corresponding entry in the map for insertion and/or
/// in-place manipulation.
#[inline]
pub fn entry(&mut self, k: Value) -> Entry {
@@ -89,7 +88,7 @@ impl Mapping {
/// Removes and returns the value corresponding to the key from the map.
///
/// This is equivalent to [`.swap_remove(index)`][Self::swap_remove],
/// replacing this entrys position with the last element. If you need to
/// replacing this entry's position with the last element. If you need to
/// preserve the relative order of the keys in the map, use
/// [`.shift_remove(key)`][Self::shift_remove] instead.
#[inline]
@@ -100,7 +99,7 @@ impl Mapping {
/// Remove and return the key-value pair.
///
/// This is equivalent to [`.swap_remove_entry(index)`][Self::swap_remove_entry],
/// replacing this entrys position with the last element. If you need to
/// replacing this entry's position with the last element. If you need to
/// preserve the relative order of the keys in the map, use
/// [`.shift_remove_entry(key)`][Self::shift_remove_entry] instead.
#[inline]
2 changes: 0 additions & 2 deletions src/value/from.rs
Original file line number Diff line number Diff line change
@@ -145,8 +145,6 @@ impl<'a, T: Clone + Into<Value>> From<&'a [T]> for Value {
}
}

use std::iter::FromIterator;

impl<T: Into<Value>> FromIterator<T> for Value {
/// Convert an iteratable type to a YAML sequence
///