Another import optimization.

This commit is contained in:
ClementTsang 2020-02-28 23:02:16 -05:00
parent 27a04b9dd5
commit 01977fffdd
4 changed files with 7 additions and 7 deletions

View file

@ -15,7 +15,7 @@
use std::time::Instant;
use std::vec::Vec;
use crate::data_harvester::{cpu, disks, mem, network, processes, temperature, Data};
use crate::data_harvester::{cpu, Data, disks, mem, network, processes, temperature};
pub type TimeOffset = f64;
pub type Value = f64;

View file

@ -5,9 +5,9 @@ use tui::{
backend,
layout::{Alignment, Constraint, Direction, Layout, Rect},
style::{Color, Style},
Terminal,
terminal::Frame,
widgets::{Axis, Block, Borders, Chart, Dataset, Marker, Paragraph, Row, Table, Text, Widget},
Terminal,
};
use unicode_segmentation::UnicodeSegmentation;
use unicode_width::UnicodeWidthStr;

View file

@ -7,9 +7,9 @@ use constants::*;
use crate::{
app::{
App,
data_farmer,
data_harvester::{self, processes::ProcessHarvest},
App,
},
constants,
utils::gen_util::{get_exact_byte_values, get_simple_byte_values},

View file

@ -20,20 +20,20 @@ use std::{
use crossterm::{
event::{
poll, read, DisableMouseCapture, EnableMouseCapture, Event as CEvent, KeyCode, KeyEvent,
KeyModifiers, MouseEvent,
DisableMouseCapture, EnableMouseCapture, Event as CEvent, KeyCode, KeyEvent, KeyModifiers, MouseEvent,
poll, read,
},
execute,
style::Print,
terminal::LeaveAlternateScreen,
terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen},
terminal::LeaveAlternateScreen,
};
use serde::Deserialize;
use tui::{backend::CrosstermBackend, Terminal};
use app::{
data_harvester::{self, processes::ProcessSorting},
App,
data_harvester::{self, processes::ProcessSorting},
};
use constants::*;
use data_conversion::*;