update rustfmt.toml

This commit is contained in:
figsoda 2023-07-01 16:44:29 -04:00
parent d36d99092c
commit a9406a49c6
6 changed files with 24 additions and 24 deletions

View file

@ -1,13 +1,13 @@
use clap::{CommandFactory, ValueEnum};
use clap_complete::{generate_to, Shell};
use clap_mangen::Man;
use std::{ use std::{
env, env,
fs::{create_dir_all, File}, fs::{create_dir_all, File},
path::Path, path::Path,
}; };
use clap::{CommandFactory, ValueEnum};
use clap_complete::{generate_to, Shell};
use clap_mangen::Man;
include!("src/cli.rs"); include!("src/cli.rs");
fn main() { fn main() {

View file

@ -2,11 +2,11 @@ unstable_features = true
condense_wildcard_suffixes = true condense_wildcard_suffixes = true
format_code_in_doc_comments = true format_code_in_doc_comments = true
group_imports = "StdExternalCrate"
imports_granularity = "Crate" imports_granularity = "Crate"
newline_style = "Unix" newline_style = "Unix"
normalize_comments = true normalize_comments = true
normalize_doc_attributes = true normalize_doc_attributes = true
overflow_delimited_expr = false
reorder_impl_items = true reorder_impl_items = true
spaces_around_ranges = true spaces_around_ranges = true
use_field_init_shorthand = true use_field_init_shorthand = true

View file

@ -1,7 +1,7 @@
use clap::Parser;
use std::path::PathBuf; use std::path::PathBuf;
use clap::Parser;
/// Minimal mpd terminal client that aims to be simple yet highly configurable /// Minimal mpd terminal client that aims to be simple yet highly configurable
/// https://github.com/figsoda/mmtc /// https://github.com/figsoda/mmtc
#[derive(Parser)] #[derive(Parser)]

View file

@ -1,11 +1,11 @@
use std::fmt::{self, Formatter};
use ratatui::style::Color; use ratatui::style::Color;
use serde::{ use serde::{
de::{self, EnumAccess, SeqAccess, VariantAccess, Visitor}, de::{self, EnumAccess, SeqAccess, VariantAccess, Visitor},
Deserialize, Deserializer, Deserialize, Deserializer,
}; };
use std::fmt::{self, Formatter};
use crate::defaults; use crate::defaults;
#[derive(Deserialize)] #[derive(Deserialize)]

View file

@ -7,6 +7,19 @@ mod defaults;
mod layout; mod layout;
mod mpd; mod mpd;
use std::{
cmp::min,
env, fs,
io::stdout,
process::exit,
sync::{
atomic::{AtomicU8, Ordering},
Arc,
},
thread::{self, Thread},
time::Duration,
};
use anyhow::{Context, Result}; use anyhow::{Context, Result};
use async_io::{block_on, Timer}; use async_io::{block_on, Timer};
use async_net::resolve; use async_net::resolve;
@ -25,19 +38,6 @@ use futures_lite::StreamExt;
use ratatui::{backend::CrosstermBackend, widgets::ListState, Terminal}; use ratatui::{backend::CrosstermBackend, widgets::ListState, Terminal};
use secular::lower_lay_string; use secular::lower_lay_string;
use std::{
cmp::min,
env, fs,
io::stdout,
process::exit,
sync::{
atomic::{AtomicU8, Ordering},
Arc,
},
thread::{self, Thread},
time::Duration,
};
use crate::{ use crate::{
app::{Command, State}, app::{Command, State},
cli::Opts, cli::Opts,

View file

@ -1,3 +1,5 @@
use std::io::{stdout, Write};
use anyhow::{bail, Context, Result}; use anyhow::{bail, Context, Result};
use async_net::{AsyncToSocketAddrs, TcpStream}; use async_net::{AsyncToSocketAddrs, TcpStream};
use expand::expand; use expand::expand;
@ -7,8 +9,6 @@ use futures_lite::{
}; };
use secular::lower_lay_string; use secular::lower_lay_string;
use std::io::{stdout, Write};
use crate::config::SearchFields; use crate::config::SearchFields;
pub struct Client { pub struct Client {