Skip to content

Commit 5537445

Browse files
Update Clippy and rustfmt configs
1 parent ca89c66 commit 5537445

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

rust/Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION 0.8
22

3-
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.2.23 AS rust-ci
3+
IMPORT github.com/input-output-hk/catalyst-ci/earthly/rust:v3.2.25 AS rust-ci
44

55
COPY_SRC:
66
FUNCTION

rust/clippy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
allow-unwrap-in-tests = true
22
allow-expect-in-tests = true
3+
allow-panic-in-tests = true

rust/rbac-registration/src/cardano/cip509/utils/cip134.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ mod tests {
107107

108108
for uri in test_uris {
109109
let err = format!("{:?}", Cip0134Uri::parse(uri).expect_err(uri));
110-
assert_eq!("Missing schema part of URI", err);
110+
assert!(err.starts_with("Missing schema part of URI"));
111111
}
112112
}
113113

rust/rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ max_width = 100
3636

3737
# Comments:
3838
normalize_comments = true
39-
normalize_doc_attributes = true
39+
normalize_doc_attributes = false
4040
wrap_comments = true
4141
comment_width = 90 # small excess is okay but prefer 80
4242
format_code_in_doc_comments = true

0 commit comments

Comments
 (0)