Skip to content

Commit

Permalink
Update Clippy and rustfmt configs
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-tkach committed Dec 12, 2024
1 parent ca89c66 commit 5537445
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust/Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION 0.8

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

COPY_SRC:
FUNCTION
Expand Down
1 change: 1 addition & 0 deletions rust/clippy.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
allow-unwrap-in-tests = true
allow-expect-in-tests = true
allow-panic-in-tests = true
2 changes: 1 addition & 1 deletion rust/rbac-registration/src/cardano/cip509/utils/cip134.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ mod tests {

for uri in test_uris {
let err = format!("{:?}", Cip0134Uri::parse(uri).expect_err(uri));
assert_eq!("Missing schema part of URI", err);
assert!(err.starts_with("Missing schema part of URI"));
}
}

Expand Down
2 changes: 1 addition & 1 deletion rust/rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ max_width = 100

# Comments:
normalize_comments = true
normalize_doc_attributes = true
normalize_doc_attributes = false
wrap_comments = true
comment_width = 90 # small excess is okay but prefer 80
format_code_in_doc_comments = true
Expand Down

0 comments on commit 5537445

Please sign in to comment.