Fix clippy::needless_lifetimes warnings on nightly

The warnings in `derivative`'s derived code are not something we can fix.
This commit is contained in:
cyqsimon
2024-10-08 14:48:45 +08:00
parent 92de00bb62
commit 75122fa663
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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()