Skip to content

Commit

Permalink
style: Update rustfmt.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Sep 28, 2024
1 parent beba2f1 commit 55d8d9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ default: build

# Run the formatter with options
@fmt-with-options:
cargo fmt -- --config "format_code_in_doc_comments=true,wrap_comments=true"
cargo +nightly fmt

# Run the linter
@clippy:
Expand Down
4 changes: 4 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
# SPDX-License-Identifier: Apache-2.0 OR MIT

edition = "2021"
format_code_in_doc_comments = true
group_imports = "StdExternalCrate"
imports_granularity = "Crate"
wrap_comments = true
3 changes: 1 addition & 2 deletions src/exit_code/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@

//! Implementations of conversions between [`ExitCode`] and other types.

use crate::error::ExitCodeRangeError;

use super::ExitCode;
use crate::error::ExitCodeRangeError;

macro_rules! impl_from_exit_code_to_integer {
($T:ty, $ok:expr, $usage:expr) => {
Expand Down

0 comments on commit 55d8d9b

Please sign in to comment.