Skip to content

Commit

Permalink
Merge pull request #432 from imsnif/clippy
Browse files Browse the repository at this point in the history
Fix `clippy::needless_lifetimes` warnings on nightly
  • Loading branch information
cyqsimon authored Oct 8, 2024
2 parents 92de00b + 0f41152 commit edfaf9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
* CI: Use Powershell Compress-Archive to create Windows binary zip #424 - @cyqsimon
* Exit gracefully when there is a broken pipe error #429 - @sigmaSd
* Fix breaking changes of sysinfo crate #431 - @cyqsimon
* Fix `clippy::needless_lifetimes` warnings on nightly #432 - @cyqsimon

## [0.23.0] - 2024-08-17

Expand Down
2 changes: 1 addition & 1 deletion src/display/components/header_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct HeaderDetails<'a> {
pub paused: bool,
}

impl<'a> HeaderDetails<'a> {
impl HeaderDetails<'_> {
pub fn render(&self, frame: &mut Frame, rect: Rect) {
let bandwidth = self.bandwidth_string();
let color = if self.paused {
Expand Down
2 changes: 1 addition & 1 deletion src/display/components/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct Layout<'a> {
pub footer: HelpText,
}

impl<'a> Layout<'a> {
impl Layout<'_> {
fn progressive_split(&self, rect: Rect, splits: Vec<Direction>) -> Vec<Rect> {
splits
.into_iter()
Expand Down

0 comments on commit edfaf9c

Please sign in to comment.