mirror of
https://github.com/Atsukoro1/ponyfetch.git
synced 2024-11-30 15:48:00 +01:00
style: 💄 Formating 'use' cases
This commit is contained in:
parent
4bc54ae5a6
commit
84abc4ddcb
3 changed files with 18 additions and 12 deletions
|
@ -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"))]
|
#[cfg(any(target_os = "windows", target_os = "linux"))]
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
use {
|
||||||
|
crate::helpers::file::file_open,
|
||||||
|
std::{fs::File, io::Read},
|
||||||
|
};
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
pub fn get_hostname() -> String {
|
pub fn get_hostname() -> String {
|
||||||
|
|
|
@ -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::process::Command;
|
||||||
use std::sync::Mutex;
|
|
||||||
use std::ops::Add;
|
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
pub fn get_ipaddr() -> String {
|
pub fn get_ipaddr() -> String {
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
use crate::helpers::file::file_open;
|
#[cfg(target_os = "linux")]
|
||||||
use std::fs::File;
|
use {
|
||||||
use std::io::Read;
|
crate::helpers::file::file_open,
|
||||||
use std::rc::Rc;
|
std::fs::File,
|
||||||
|
std::io::Read,
|
||||||
|
std::rc::Rc,
|
||||||
|
};
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
pub fn get_cpu() -> String {
|
pub fn get_cpu() -> String {
|
||||||
|
|
Loading…
Reference in a new issue