avoid rustc 1.91.0 warnings

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2025-11-10 16:01:48 +03:00
parent e91dc51ff7
commit abf2388761
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA
3 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
name = "ghost-eye"
authors = ["str3tch <stretch@ghostchain.io>"]
description = "Application for interacting with Casper/Ghost nodes that are exposing RPC only to the localhost"
version = "0.3.71"
version = "0.3.72"
edition = "2021"
homepage = "https://git.ghostchain.io/ghostchain"
repository = "https://git.ghostchain.io/ghostchain/ghost-eye"

View File

@ -26,7 +26,7 @@ impl Activatable for Empty {
}
impl Empty {
fn prepare_inactive_text(&self) -> Vec<Line> {
fn prepare_inactive_text(&self) -> Vec<Line<'_>> {
vec![
Line::from(" ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢐⣤⣼⣿⣿⣿⣿⣿⣿⣷⣶⣦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀"),
Line::from("⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣢⣾⣿⣿⣿⣿⣿⣿⣿⣿⣯⣿⣿⣿⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀"),
@ -61,7 +61,7 @@ impl Empty {
]
}
fn prepare_active_text(&self) -> Vec<Line> {
fn prepare_active_text(&self) -> Vec<Line<'_>> {
vec![
Line::from(" ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀"),
Line::from("⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠴⠊⠁⠀⠀⠀⠀⠀⠉⠒⠤⡀⠀⠀⠀⠀⠀"),

View File

@ -24,7 +24,7 @@ impl ExtrinsicsChart {
const BAR_WIDTH: usize = 6;
const BAR_GAP: usize = 1;
fn extrinsics_bar_chart(&self, width: u16) -> BarChart {
fn extrinsics_bar_chart(&self, width: u16) -> BarChart<'_> {
let (border_style, border_type) = self.palette.create_border_style(false);
let length = (width as usize) / (Self::BAR_WIDTH + Self::BAR_GAP);
@ -47,7 +47,7 @@ impl ExtrinsicsChart {
.bar_gap(1)
}
fn extrinsic_vertical_bar(&self, block_number: &u32, ext_len: &usize) -> Bar {
fn extrinsic_vertical_bar(&self, block_number: &u32, ext_len: &usize) -> Bar<'_> {
Bar::default()
.value(*ext_len as u64)
.label(Line::from(format!("..{}", block_number % 100)))