Skip to content

Commit d044889

Browse files
minor: bump indexmap to 2.1.0 (#448)
--------- Co-authored-by: Isabel Atkinson <isabel.atkinson@mongodb.com>
1 parent 4af5805 commit d044889

File tree

6 files changed

+10
-15
lines changed

6 files changed

+10
-15
lines changed

.evergreen/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ axes:
195195
- id: "extra-rust-versions"
196196
values:
197197
- id: "min"
198-
display_name: "1.61 (minimum supported version)"
198+
display_name: "1.64 (minimum supported version)"
199199
variables:
200-
RUST_VERSION: "1.61.0"
200+
RUST_VERSION: "1.64.0"
201201
MSRV: "true"
202202
- id: "nightly"
203203
display_name: "nightly"

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ chrono = { version = "0.4.15", features = ["std"], default-features = false, opt
5858
rand = "0.8"
5959
serde = { version = "1.0", features = ["derive"] }
6060
serde_json = { version = "1.0", features = ["preserve_order"] }
61-
indexmap = "1.6.2"
61+
indexmap = "2.1.0"
6262
hex = "0.4.2"
6363
base64 = "0.13.0"
6464
once_cell = "1.5.1"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Note that if you are using `bson` through the `mongodb` crate, you do not need t
5151
| `uuid-0_8` | Enable support for v0.8 of the [`uuid`](https://docs.rs/uuid/0.8) crate in the public API. | n/a | no |
5252
| `uuid-1` | Enable support for v1.x of the [`uuid`](https://docs.rs/uuid/1.0) crate in the public API. | n/a | no |
5353
| `serde_with` | Enable [`serde_with`](https://docs.rs/serde_with/1.x) 1.x integrations for `bson::DateTime` and `bson::Uuid`.| serde_with | no |
54-
| `serde_with-3` | Enable [`serde_with`](https://docs.rs/serde_with/3.x) 3.x integrations for `bson::DateTime` and `bson::Uuid`. Requires Rust 1.61. | serde_with | no |
54+
| `serde_with-3` | Enable [`serde_with`](https://docs.rs/serde_with/3.x) 3.x integrations for `bson::DateTime` and `bson::Uuid`.| serde_with | no |
5555
## Overview of the BSON Format
5656

5757
BSON, short for Binary JSON, is a binary-encoded serialization of JSON-like documents.
@@ -257,7 +257,7 @@ This crate compiles to the `wasm32-unknown-unknown` target; when doing so, the `
257257

258258
## Minimum supported Rust version (MSRV)
259259

260-
The MSRV for this crate is currently 1.61.0. This will be rarely be increased, and if it ever is,
260+
The MSRV for this crate is currently 1.64.0. This will be rarely be increased, and if it ever is,
261261
it will only happen in a minor or major version release.
262262

263263
## Contributing

clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
msrv = "1.61.0"
1+
msrv = "1.64.0"

src/bson.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use crate::{
3737
};
3838

3939
/// Possible BSON value types.
40-
#[derive(Clone, PartialEq)]
40+
#[derive(Clone, Default, PartialEq)]
4141
pub enum Bson {
4242
/// 64-bit binary floating point
4343
Double(f64),
@@ -50,6 +50,7 @@ pub enum Bson {
5050
/// Boolean value
5151
Boolean(bool),
5252
/// Null value
53+
#[default]
5354
Null,
5455
/// Regular expression
5556
RegularExpression(Regex),
@@ -86,12 +87,6 @@ pub enum Bson {
8687
/// Alias for `Vec<Bson>`.
8788
pub type Array = Vec<Bson>;
8889

89-
impl Default for Bson {
90-
fn default() -> Self {
91-
Bson::Null
92-
}
93-
}
94-
9590
impl Display for Bson {
9691
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
9792
match *self {

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
//!
4444
//! ## Installation
4545
//! ### Requirements
46-
//! - Rust 1.61+
46+
//! - Rust 1.64+
4747
//!
4848
//! ### Importing
4949
//! This crate is available on [crates.io](https://crates.io/crates/bson). To use it in your application,
@@ -267,7 +267,7 @@
267267
//!
268268
//! ## Minimum supported Rust version (MSRV)
269269
//!
270-
//! The MSRV for this crate is currently 1.61.0. This will be rarely be increased, and if it ever is,
270+
//! The MSRV for this crate is currently 1.64.0. This will be rarely be increased, and if it ever is,
271271
//! it will only happen in a minor or major version release.
272272
273273
#![allow(clippy::cognitive_complexity, clippy::derive_partial_eq_without_eq)]

0 commit comments

Comments
 (0)