Skip to content

Commit edfaf9c

Browse files
authored
Merge pull request #432 from imsnif/clippy
Fix `clippy::needless_lifetimes` warnings on nightly
2 parents 92de00b + 0f41152 commit edfaf9c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1111
* CI: Use Powershell Compress-Archive to create Windows binary zip #424 - @cyqsimon
1212
* Exit gracefully when there is a broken pipe error #429 - @sigmaSd
1313
* Fix breaking changes of sysinfo crate #431 - @cyqsimon
14+
* Fix `clippy::needless_lifetimes` warnings on nightly #432 - @cyqsimon
1415

1516
## [0.23.0] - 2024-08-17
1617

src/display/components/header_details.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub struct HeaderDetails<'a> {
4040
pub paused: bool,
4141
}
4242

43-
impl<'a> HeaderDetails<'a> {
43+
impl HeaderDetails<'_> {
4444
pub fn render(&self, frame: &mut Frame, rect: Rect) {
4545
let bandwidth = self.bandwidth_string();
4646
let color = if self.paused {

src/display/components/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub struct Layout<'a> {
3030
pub footer: HelpText,
3131
}
3232

33-
impl<'a> Layout<'a> {
33+
impl Layout<'_> {
3434
fn progressive_split(&self, rect: Rect, splits: Vec<Direction>) -> Vec<Rect> {
3535
splits
3636
.into_iter()

0 commit comments

Comments
 (0)