Skip to content

Commit

Permalink
style: enable more rustfmt settings (ratatui#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo authored May 26, 2024
1 parent 8b447ec commit df4b706
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# configuration for https://rust-lang.github.io/rustfmt/
comment_width = 100
format_code_in_doc_comments = true
format_macro_matchers=true
group_imports = "StdExternalCrate"
imports_granularity = "Crate"
normalize_doc_attributes=true
use_field_init_shorthand=true
wrap_comments = true
comment_width = 100
format_code_in_doc_comments = true
4 changes: 2 additions & 2 deletions src/backend/termion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl fmt::Display for Bg {
}

macro_rules! from_termion_for_color {
($termion_color:ident, $color: ident) => {
($termion_color:ident, $color:ident) => {
impl From<tcolor::$termion_color> for Color {
fn from(_: tcolor::$termion_color) -> Self {
Color::$color
Expand Down Expand Up @@ -436,7 +436,7 @@ impl fmt::Display for ModifierDiff {
}

macro_rules! from_termion_for_modifier {
($termion_modifier:ident, $modifier: ident) => {
($termion_modifier:ident, $modifier:ident) => {
impl From<tstyle::$termion_modifier> for Modifier {
fn from(_: tstyle::$termion_modifier) -> Self {
Modifier::$modifier
Expand Down

0 comments on commit df4b706

Please sign in to comment.