Skip to content

Commit 8a33b4f

Browse files
committed
fix clippy warnings
1 parent b4c86ed commit 8a33b4f

File tree

14 files changed

+17
-17
lines changed

14 files changed

+17
-17
lines changed

src/board.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ use std::{fs, path::Path};
44
use anyhow::{Context, Result};
55

66
use ratatui::{
7+
Frame,
78
layout::{Constraint, Rect},
89
style::{Style, Stylize},
910
widgets::{Block, BorderType, Borders, Cell, Padding, Row, Table},
10-
Frame,
1111
};
1212
use regex::Regex;
1313

src/cpu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ use std::{
77
};
88

99
use ratatui::{
10+
Frame,
1011
layout::{Constraint, Direction, Layout, Rect},
1112
style::{Style, Stylize},
1213
text::Line,
1314
widgets::{Bar, BarChart, BarGroup, Block, Borders, Padding},
14-
Frame,
1515
};
1616

1717
#[derive(Debug, Default)]

src/disk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ use std::io::Seek;
99
use std::{ffi::CString, fs};
1010

1111
use ratatui::{
12+
Frame,
1213
layout::{Constraint, Rect},
1314
style::{Style, Stylize},
1415
widgets::{Block, Borders, Padding, Row, Table},
15-
Frame,
1616
};
1717

1818
#[derive(Debug, Default)]

src/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use ratatui::{
2+
Frame,
23
layout::{Constraint, Direction, Layout, Rect},
34
style::{Style, Stylize},
45
widgets::{Block, Borders, Padding, Row, Table},
5-
Frame,
66
};
77
use std::fs;
88
use std::path::Path;

src/fan.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ use std::{
99
use strum_macros::Display;
1010

1111
use ratatui::{
12+
Frame,
1213
layout::{Constraint, Rect},
1314
style::{Style, Stylize},
1415
widgets::{Block, Borders, Padding, Row, Table},
15-
Frame,
1616
};
1717

1818
#[derive(Debug, Default)]
@@ -93,19 +93,19 @@ impl FanProfile {
9393
return Ok(Some(FanProfile {
9494
file,
9595
value: Profile::Quiet,
96-
}))
96+
}));
9797
}
9898
"cool" => {
9999
return Ok(Some(FanProfile {
100100
file,
101101
value: Profile::Cool,
102-
}))
102+
}));
103103
}
104104
_ => {
105105
return Ok(Some(FanProfile {
106106
file,
107107
value: Profile::Unknown,
108-
}))
108+
}));
109109
}
110110
}
111111
}

src/gpu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use anyhow::{Context, Result};
22
use log::error;
33
use ratatui::{
4+
Frame,
45
layout::{Constraint, Direction, Layout, Rect},
56
style::{Style, Stylize},
67
text::Line,
78
widgets::{Bar, BarChart, BarGroup, Block, Borders, Cell, Padding, Row, Table},
8-
Frame,
99
};
1010
use std::{
1111
fs::{self, File},

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use ratatui::{backend::CrosstermBackend, Terminal};
1+
use ratatui::{Terminal, backend::CrosstermBackend};
22
use std::io;
33
use tegratop::{
44
app::{App, AppResult},

src/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use anyhow::{Context, Result};
22
use log::error;
33
use ratatui::{
4+
Frame,
45
layout::{Constraint, Direction, Layout, Rect},
56
style::{Style, Stylize},
67
text::Line,
78
widgets::{Bar, BarChart, BarGroup, Block, Borders, Cell, Padding, Row, Table},
8-
Frame,
99
};
1010

1111
use std::{

src/network.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ use std::ffi::CStr;
22
use std::net::Ipv4Addr;
33

44
use ratatui::{
5+
Frame,
56
layout::{Constraint, Rect},
67
style::{Style, Stylize},
78
widgets::{Block, Borders, Padding, Row, Table},
8-
Frame,
99
};
1010

1111
#[derive(Debug, Default)]

src/power.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ use std::{
66
};
77

88
use ratatui::{
9+
Frame,
910
layout::{Constraint, Direction, Layout, Rect},
1011
style::{Style, Stylize},
1112
widgets::{Block, Borders, Cell, Padding, Row, Table},
12-
Frame,
1313
};
1414
use regex::Regex;
1515

0 commit comments

Comments
 (0)