mirror of
https://github.com/figsoda/mmtc
synced 2024-11-21 22:53:02 +00:00
update rustfmt.toml
This commit is contained in:
parent
d36d99092c
commit
a9406a49c6
6 changed files with 24 additions and 24 deletions
8
build.rs
8
build.rs
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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)]
|
||||
|
|
26
src/main.rs
26
src/main.rs
|
@ -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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue