mirror of
https://github.com/LordMZTE/mcstat.git
synced 2024-05-11 08:17:16 +02:00
replace macro_use with normal use
This commit is contained in:
parent
60df88dee1
commit
499573d011
13
src/main.rs
13
src/main.rs
|
@ -1,21 +1,14 @@
|
||||||
#[macro_use]
|
|
||||||
extern crate clap;
|
|
||||||
#[macro_use]
|
|
||||||
extern crate mcstat;
|
|
||||||
#[macro_use]
|
|
||||||
extern crate anyhow;
|
|
||||||
|
|
||||||
use std::io::Cursor;
|
use std::io::Cursor;
|
||||||
use time::Duration;
|
use time::Duration;
|
||||||
use tokio::time;
|
use tokio::time;
|
||||||
|
|
||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result, anyhow};
|
||||||
use asciify::AsciiBuilder;
|
use asciify::AsciiBuilder;
|
||||||
use async_minecraft_ping::{ConnectionConfig, ModInfo, ServerDescription, StatusResponse};
|
use async_minecraft_ping::{ConnectionConfig, ModInfo, ServerDescription, StatusResponse};
|
||||||
use clap::App;
|
use clap::{App, load_yaml};
|
||||||
use image::ImageFormat;
|
use image::ImageFormat;
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
use mcstat::{remove_formatting, AsciiConfig};
|
use mcstat::{remove_formatting, AsciiConfig, print_table, none_if_empty};
|
||||||
use termcolor::{Buffer, BufferWriter, ColorChoice, WriteColor};
|
use termcolor::{Buffer, BufferWriter, ColorChoice, WriteColor};
|
||||||
|
|
||||||
/// this message is used if getting a value from the arguments fails
|
/// this message is used if getting a value from the arguments fails
|
||||||
|
|
Loading…
Reference in a new issue