Skip to content

Commit 8e82a4e

Browse files
committed
fix settings bump
1 parent d84707c commit 8e82a4e

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

Cargo.lock

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

crates/settings/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ scuffle_package(
1212
proc_macro_deps = ["//crates/changelog"],
1313
test = scuffle_test(
1414
data = glob(["assets/*"]),
15+
insta = True,
1516
env = {
1617
"ASSETS_DIR": "crates/settings/assets",
1718
},

crates/settings/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ thiserror = "2"
6060
# For examples:
6161
serde_derive = "1"
6262
smart-default = "0.7"
63+
insta = "1.42"
6364

6465
[package.metadata.xtask.powerset]
6566
additive-features = [

crates/settings/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ mod tests {
357357
#[test]
358358
fn parse_empty() {
359359
let err = parse_settings::<TestSettings>(Options::default()).expect_err("expected error");
360-
assert!(matches!(err, crate::SettingsError::Config(config::ConfigError::Message(_))));
361-
assert_eq!(err.to_string(), "missing field `key`");
360+
assert!(matches!(err, crate::SettingsError::Config(_)));
361+
insta::assert_snapshot!(err, @r#"missing configuration field "key""#);
362362
}
363363

364364
#[test]

vendor/cargo/defs.bzl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,6 +2173,11 @@ _NORMAL_DEV_DEPENDENCIES = {
21732173
},
21742174
},
21752175
"crates/settings": {
2176+
_REQUIRED_FEATURE: {
2177+
_COMMON_CONDITION: {
2178+
"insta": Label("@cargo_vendor//:insta-1.43.2"),
2179+
},
2180+
},
21762181
},
21772182
"crates/signal": {
21782183
_REQUIRED_FEATURE: {
@@ -2435,6 +2440,10 @@ _NORMAL_DEV_ALIASES = {
24352440
},
24362441
},
24372442
"crates/settings": {
2443+
_REQUIRED_FEATURE: {
2444+
_COMMON_CONDITION: {
2445+
},
2446+
},
24382447
},
24392448
"crates/signal": {
24402449
_REQUIRED_FEATURE: {
@@ -3458,6 +3467,10 @@ _PROC_MACRO_DEV_ALIASES = {
34583467
},
34593468
},
34603469
"crates/settings": {
3470+
_REQUIRED_FEATURE: {
3471+
_COMMON_CONDITION: {
3472+
},
3473+
},
34613474
},
34623475
"crates/signal": {
34633476
_REQUIRED_FEATURE: {

0 commit comments

Comments
 (0)