mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-21 20:23:11 +00:00
style: enable more rustfmt settings (#1125)
This commit is contained in:
parent
8b447ec4d6
commit
df4b706674
2 changed files with 8 additions and 5 deletions
|
@ -1,6 +1,9 @@
|
||||||
# configuration for https://rust-lang.github.io/rustfmt/
|
# configuration for https://rust-lang.github.io/rustfmt/
|
||||||
group_imports = "StdExternalCrate"
|
|
||||||
imports_granularity = "Crate"
|
|
||||||
wrap_comments = true
|
|
||||||
comment_width = 100
|
comment_width = 100
|
||||||
format_code_in_doc_comments = true
|
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
|
||||||
|
|
|
@ -295,7 +295,7 @@ impl fmt::Display for Bg {
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! from_termion_for_color {
|
macro_rules! from_termion_for_color {
|
||||||
($termion_color:ident, $color: ident) => {
|
($termion_color:ident, $color:ident) => {
|
||||||
impl From<tcolor::$termion_color> for Color {
|
impl From<tcolor::$termion_color> for Color {
|
||||||
fn from(_: tcolor::$termion_color) -> Self {
|
fn from(_: tcolor::$termion_color) -> Self {
|
||||||
Color::$color
|
Color::$color
|
||||||
|
@ -436,7 +436,7 @@ impl fmt::Display for ModifierDiff {
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! from_termion_for_modifier {
|
macro_rules! from_termion_for_modifier {
|
||||||
($termion_modifier:ident, $modifier: ident) => {
|
($termion_modifier:ident, $modifier:ident) => {
|
||||||
impl From<tstyle::$termion_modifier> for Modifier {
|
impl From<tstyle::$termion_modifier> for Modifier {
|
||||||
fn from(_: tstyle::$termion_modifier) -> Self {
|
fn from(_: tstyle::$termion_modifier) -> Self {
|
||||||
Modifier::$modifier
|
Modifier::$modifier
|
||||||
|
|
Loading…
Reference in a new issue