mirror of
https://github.com/imsnif/bandwhich.git
synced 2026-02-09 01:59:18 +08:00
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:
@@ -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 {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user