Skip to content

Commit cbfc220

Browse files
Update smol_str requirement from 0.2 to 0.3 (#1181)
Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Shaobo He <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Shaobo He <[email protected]>
1 parent ee22ef6 commit cbfc220

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

cedar-policy-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ itertools = "0.13"
2323
ref-cast = "1.0"
2424
rustc_lexer = "0.1"
2525
thiserror = "1.0"
26-
smol_str = { version = "0.2", features = ["serde"] }
26+
smol_str = { version = "0.3", features = ["serde"] }
2727
stacker = "0.1.15"
2828
arbitrary = { version = "1", features = ["derive"], optional = true }
2929
miette = { version = "7.1.0", features = ["serde"] }

cedar-policy-core/src/parser/cst_to_ast.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2228,7 +2228,7 @@ mod tests {
22282228
);
22292229
assert_matches!(
22302230
policy.annotation(&ast::AnyId::new_unchecked("anno")),
2231-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "good annotation")
2231+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "good annotation")
22322232
);
22332233

22342234
// duplication is error
@@ -2278,28 +2278,28 @@ mod tests {
22782278
.get(&ast::PolicyID::from_string("policy0"))
22792279
.expect("should be a policy")
22802280
.annotation(&ast::AnyId::new_unchecked("anno1")),
2281-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "first")
2281+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "first")
22822282
);
22832283
assert_matches!(
22842284
policyset
22852285
.get(&ast::PolicyID::from_string("policy1"))
22862286
.expect("should be a policy")
22872287
.annotation(&ast::AnyId::new_unchecked("anno2")),
2288-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "second")
2288+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "second")
22892289
);
22902290
assert_matches!(
22912291
policyset
22922292
.get(&ast::PolicyID::from_string("policy2"))
22932293
.expect("should be a policy")
22942294
.annotation(&ast::AnyId::new_unchecked("anno3a")),
2295-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "third-a")
2295+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "third-a")
22962296
);
22972297
assert_matches!(
22982298
policyset
22992299
.get(&ast::PolicyID::from_string("policy2"))
23002300
.expect("should be a policy")
23012301
.annotation(&ast::AnyId::new_unchecked("anno3b")),
2302-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "third-b")
2302+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "third-b")
23032303
);
23042304
assert_matches!(
23052305
policyset
@@ -2340,43 +2340,43 @@ mod tests {
23402340
.expect("should be the right policy ID");
23412341
assert_matches!(
23422342
policy0.annotation(&ast::AnyId::new_unchecked("if")),
2343-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "this is the annotation for `if`")
2343+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "this is the annotation for `if`")
23442344
);
23452345
assert_matches!(
23462346
policy0.annotation(&ast::AnyId::new_unchecked("then")),
2347-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "this is the annotation for `then`")
2347+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "this is the annotation for `then`")
23482348
);
23492349
assert_matches!(
23502350
policy0.annotation(&ast::AnyId::new_unchecked("else")),
2351-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "this is the annotation for `else`")
2351+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "this is the annotation for `else`")
23522352
);
23532353
assert_matches!(
23542354
policy0.annotation(&ast::AnyId::new_unchecked("true")),
2355-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "this is the annotation for `true`")
2355+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "this is the annotation for `true`")
23562356
);
23572357
assert_matches!(
23582358
policy0.annotation(&ast::AnyId::new_unchecked("false")),
2359-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "this is the annotation for `false`")
2359+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "this is the annotation for `false`")
23602360
);
23612361
assert_matches!(
23622362
policy0.annotation(&ast::AnyId::new_unchecked("in")),
2363-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "this is the annotation for `in`")
2363+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "this is the annotation for `in`")
23642364
);
23652365
assert_matches!(
23662366
policy0.annotation(&ast::AnyId::new_unchecked("is")),
2367-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "this is the annotation for `is`")
2367+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "this is the annotation for `is`")
23682368
);
23692369
assert_matches!(
23702370
policy0.annotation(&ast::AnyId::new_unchecked("like")),
2371-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "this is the annotation for `like`")
2371+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "this is the annotation for `like`")
23722372
);
23732373
assert_matches!(
23742374
policy0.annotation(&ast::AnyId::new_unchecked("has")),
2375-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "this is the annotation for `has`")
2375+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "this is the annotation for `has`")
23762376
);
23772377
assert_matches!(
23782378
policy0.annotation(&ast::AnyId::new_unchecked("principal")),
2379-
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_ref(), "this is the annotation for `principal`")
2379+
Some(ast::Annotation { val, .. }) => assert_eq!(val.as_str(), "this is the annotation for `principal`")
23802380
);
23812381
}
23822382

cedar-policy-formatter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cedar-policy-core = { version = "=4.0.0", path = "../cedar-policy-core" }
1515
pretty = "0.12.1"
1616
logos = "0.14.0"
1717
itertools = "0.13"
18-
smol_str = { version = "0.2", features = ["serde"] }
18+
smol_str = { version = "0.3", features = ["serde"] }
1919
regex = { version= "1.9.1", features = ["unicode"] }
2020
miette = { version = "7.1.0" }
2121
lazy_static = "1.4.0"

cedar-policy-validator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ thiserror = "1.0"
2020
itertools = "0.13"
2121
ref-cast = "1.0"
2222
unicode-security = "0.1.0"
23-
smol_str = { version = "0.2", features = ["serde"] }
23+
smol_str = { version = "0.3", features = ["serde"] }
2424
stacker = "0.1.15"
2525
arbitrary = { version = "1", features = ["derive"], optional = true }
2626
lalrpop-util = { version = "0.21.0", features = ["lexer", "unicode"] }

cedar-policy/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ lalrpop-util = { version = "0.21.0", features = ["lexer"] }
2121
itertools = "0.13"
2222
miette = "7.1.0"
2323
thiserror = "1.0"
24-
smol_str = { version = "0.2", features = ["serde"] }
24+
smol_str = { version = "0.3", features = ["serde"] }
2525
dhat = { version = "0.3.2", optional = true }
2626
serde_with = "3.3.0"
2727
nonempty = "0.10"

cedar-testing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cedar-policy-core = { version = "=4.0.0", path = "../cedar-policy-core" }
1111
cedar-policy-validator = { version = "=4.0.0", path = "../cedar-policy-validator" }
1212
serde = { version = "1.0", features = ["derive"] }
1313
serde_json = "1.0"
14-
smol_str = { version = "0.2", features = ["serde"] }
14+
smol_str = { version = "0.3", features = ["serde"] }
1515
miette = { version = "7.1.0", features = ["fancy"] }
1616

1717
[features]

0 commit comments

Comments
 (0)