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::{
env,
fs::{create_dir_all, File},
path::Path,
};
use clap::{CommandFactory, ValueEnum};
use clap_complete::{generate_to, Shell};
use clap_mangen::Man;
include!("src/cli.rs");
fn main() {

View file

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

View file

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

View file

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

View file

@ -7,6 +7,19 @@ mod defaults;
mod layout;
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 async_io::{block_on, Timer};
use async_net::resolve;
@ -25,19 +38,6 @@ use futures_lite::StreamExt;
use ratatui::{backend::CrosstermBackend, widgets::ListState, Terminal};
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::{
app::{Command, State},
cli::Opts,

View file

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