Skip to content

Commit

Permalink
rusty-hook: add clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewingWeasel committed Nov 14, 2023
1 parent e030f94 commit 8e28d15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rusty-hook.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[hooks]
pre-commit = "cargo check && leptosfmt --check ./src-ui/src/ && cargo fmt --check"
pre-commit = "cargo check && cargo clippy -- --deny warnings && leptosfmt --check ./src-ui/src/ && cargo fmt --check"
post-commit = "echo commited!"

[logging]
Expand Down
2 changes: 1 addition & 1 deletion src-ui/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async fn get_template_fields(template: String) -> Vec<String> {
let note_or_deck = tauri::invoke("get_note_field_names", &GetFields { model: template }).await;
match note_or_deck {
Err(e) => {
console_error(&format!("{}", e.to_string()));
console_error(&format!("{}", e));
Vec::new()
}
Ok(decks) => decks,
Expand Down

0 comments on commit 8e28d15

Please sign in to comment.