style: 💄 Formating 'use' cases

This commit is contained in:
Atsukoro1 2022-12-02 22:50:57 +01:00
parent 4bc54ae5a6
commit 84abc4ddcb
3 changed files with 18 additions and 12 deletions

View file

@ -1,10 +1,10 @@
#[cfg(target_os = "linux")]
use crate::helpers::file::file_open;
#[cfg(target_os = "linux")]
use std::{fs::File, io::Read};
#[cfg(any(target_os = "windows", target_os = "linux"))]
use std::process::Command;
#[cfg(target_os = "linux")]
use {
crate::helpers::file::file_open,
std::{fs::File, io::Read},
};
#[cfg(target_os = "windows")]
pub fn get_hostname() -> String {

View file

@ -1,7 +1,10 @@
use crate::helpers::file::file_open;
#[cfg(target_os = "linux")]
use {
crate::helpers::file::file_open,
std::sync::Mutex,
std::ops::Add,
};
use std::process::Command;
use std::sync::Mutex;
use std::ops::Add;
#[cfg(target_os = "windows")]
pub fn get_ipaddr() -> String {

View file

@ -1,7 +1,10 @@
use crate::helpers::file::file_open;
use std::fs::File;
use std::io::Read;
use std::rc::Rc;
#[cfg(target_os = "linux")]
use {
crate::helpers::file::file_open,
std::fs::File,
std::io::Read,
std::rc::Rc,
};
#[cfg(target_os = "windows")]
pub fn get_cpu() -> String {