-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
edition = "2018" | ||
edition = "2021" | ||
enum_discrim_align_threshold = 20 | ||
fn_params_layout = "Tall" | ||
force_explicit_abi = true | ||
hard_tabs = false | ||
imports_granularity = "Crate" | ||
max_width = 100 | ||
merge_derives = true | ||
imports_granularity = "Crate" | ||
newline_style = "Auto" | ||
remove_nested_parens = true | ||
reorder_imports = true | ||
reorder_modules = true | ||
struct_field_align_threshold = 20 | ||
tab_spaces = 4 | ||
trailing_comma = "Vertical" | ||
unstable_features = true | ||
use_field_init_shorthand = false | ||
use_small_heuristics = "Default" | ||
use_try_shorthand = true | ||
trailing_comma = "Vertical" | ||
struct_field_align_threshold = 20 | ||
enum_discrim_align_threshold = 20 | ||
unstable_features = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
# Run clippy with the --fix flag | ||
fix: | ||
cd {{invocation_directory()}}; cargo clippy --fix --all-targets --all-features | ||
# Justfiles are processed by the just command runner (https://just.systems/). | ||
|
||
# Run nightly cargo format | ||
# You can install it with `brew install just` or `cargo install just` | ||
_default: | ||
just --list | ||
|
||
# Run rustfmt | ||
fmt: | ||
cargo +nightly fmt --all | ||
rustup run nightly cargo fmt -- \ | ||
--config-path ./fmt/rustfmt.toml | ||
|
||
# Run clippy fix and rustfmt afterwards | ||
fix *args: && fmt | ||
cd {{ invocation_directory() }}; cargo clippy --fix --all-targets --all-features {{ args }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters