Skip to content

Commit 1d6e0c7

Browse files
authored
chore: bump libc crate (#784)
1 parent 1a17ea9 commit 1d6e0c7

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to insta and cargo-insta are documented here.
44

5+
## Unreleased
6+
7+
- Bumped `libc` crate to `0.2.174`, fixing building on musl targets, and increasing the MSRV of
8+
`insta` to `1.64.0` (released Sept 2022)
9+
510
## 1.43.1
611

712
This release in identical in rust code to 1.43.0, but reruns the GitHub Actions

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

insta/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ license = "Apache-2.0"
55
authors = ["Armin Ronacher <[email protected]>"]
66
description = "A snapshot testing library for Rust"
77
edition = "2021"
8-
rust-version = "1.60.0"
8+
rust-version = "1.64.0"
99
homepage = "https://insta.rs/"
1010
repository = "https://github.com/mitsuhiko/insta"
1111
keywords = ["snapshot", "testing", "jest", "approval"]
@@ -59,9 +59,7 @@ regex = { version = "1.6.0", default-features = false, optional = true, features
5959
] }
6060
serde = { version = "1.0.117", optional = true }
6161
once_cell = "1.20.2"
62-
# Not yet supported in our MSRV of 1.60.0
63-
# clap = { workspace=true, optional = true }
64-
clap = { version = "4.1", features = ["derive", "env"], optional = true }
62+
clap = { workspace = true, optional = true }
6563

6664
[dev-dependencies]
6765
rustc_version = "0.4.0"

insta/src/snapshot.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,13 @@ impl PendingInlineSnapshot {
137137
}
138138
}
139139

140-
#[derive(Debug, Clone, PartialEq)]
140+
#[derive(Debug, Clone, PartialEq, Default)]
141141
pub enum SnapshotKind {
142+
#[default]
142143
Text,
143-
Binary { extension: String },
144-
}
145-
146-
impl Default for SnapshotKind {
147-
fn default() -> Self {
148-
SnapshotKind::Text
149-
}
144+
Binary {
145+
extension: String,
146+
},
150147
}
151148

152149
/// Snapshot metadata information.

0 commit comments

Comments
 (0)