diff --git a/.justfile b/.justfile index 16db5d1..0b23ad4 100644 --- a/.justfile +++ b/.justfile @@ -62,7 +62,7 @@ alias qo := quick-test-cover-watch # Format all files [group: 'develop'] format: - cargo fmt + cargo +nightly fmt alias f := format @@ -162,7 +162,7 @@ alias do := doc-open # Assess formatting [group: 'assess'] format-assess: - cargo fmt -- --check + cargo +nightly fmt -- --check alias fc := format-assess diff --git a/.rustfmt.toml b/.rustfmt.toml index 10fe2ff..f55bf01 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -1,12 +1,14 @@ +unstable_features = true match_block_trailing_comma = true max_width = 80 reorder_imports = false reorder_modules = false use_field_init_shorthand = true use_try_shorthand = true +skip_macro_invocations = ["concat"] -# blank_lines_lower_bound = 1 # not stabilized yet +# blank_lines_lower_bound = 1 # where_single_line = true # overflow_delimited_expr = true # normalize_doc_attributes = true