Skip to content

Commit

Permalink
Use nightly toolchains to format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Jul 30, 2024
1 parent 9c2da84 commit a7dcc11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ solana = "2.0.1"
# Specify Rust toolchains for rustfmt, clippy, and build.
# Any unprovided toolchains default to stable.
[workspace.metadata.toolchains]
format = "1.78.0"
lint = "1.78.0"
format = "nightly-2023-10-05"
lint = "nightly-2023-10-05"
15 changes: 5 additions & 10 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
max_width = 100
reorder_imports = true
reorder_modules = true

# == Nightly only. ==
# imports_indent = "Block"
# imports_layout = "Mixed"
# imports_granularity = "Crate"
# group_imports = "Preserve"
# reorder_impl_items = false
comment_width = 80
format_strings = true
group_imports = "One"
imports_granularity = "One"
wrap_comments = true

0 comments on commit a7dcc11

Please sign in to comment.