avoid rustc 1.91.0 warnings
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
parent
e91dc51ff7
commit
abf2388761
@ -2,7 +2,7 @@
|
|||||||
name = "ghost-eye"
|
name = "ghost-eye"
|
||||||
authors = ["str3tch <stretch@ghostchain.io>"]
|
authors = ["str3tch <stretch@ghostchain.io>"]
|
||||||
description = "Application for interacting with Casper/Ghost nodes that are exposing RPC only to the localhost"
|
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"
|
edition = "2021"
|
||||||
homepage = "https://git.ghostchain.io/ghostchain"
|
homepage = "https://git.ghostchain.io/ghostchain"
|
||||||
repository = "https://git.ghostchain.io/ghostchain/ghost-eye"
|
repository = "https://git.ghostchain.io/ghostchain/ghost-eye"
|
||||||
|
|||||||
@ -26,7 +26,7 @@ impl Activatable for Empty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Empty {
|
impl Empty {
|
||||||
fn prepare_inactive_text(&self) -> Vec<Line> {
|
fn prepare_inactive_text(&self) -> Vec<Line<'_>> {
|
||||||
vec![
|
vec![
|
||||||
Line::from(" ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢐⣤⣼⣿⣿⣿⣿⣿⣿⣷⣶⣦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀"),
|
Line::from(" ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢐⣤⣼⣿⣿⣿⣿⣿⣿⣷⣶⣦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀"),
|
||||||
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![
|
vec![
|
||||||
Line::from(" ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀"),
|
Line::from(" ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀"),
|
||||||
Line::from("⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠴⠊⠁⠀⠀⠀⠀⠀⠉⠒⠤⡀⠀⠀⠀⠀⠀"),
|
Line::from("⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠴⠊⠁⠀⠀⠀⠀⠀⠉⠒⠤⡀⠀⠀⠀⠀⠀"),
|
||||||
|
|||||||
@ -24,7 +24,7 @@ impl ExtrinsicsChart {
|
|||||||
const BAR_WIDTH: usize = 6;
|
const BAR_WIDTH: usize = 6;
|
||||||
const BAR_GAP: usize = 1;
|
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 (border_style, border_type) = self.palette.create_border_style(false);
|
||||||
let length = (width as usize) / (Self::BAR_WIDTH + Self::BAR_GAP);
|
let length = (width as usize) / (Self::BAR_WIDTH + Self::BAR_GAP);
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ impl ExtrinsicsChart {
|
|||||||
.bar_gap(1)
|
.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()
|
Bar::default()
|
||||||
.value(*ext_len as u64)
|
.value(*ext_len as u64)
|
||||||
.label(Line::from(format!("..{}", block_number % 100)))
|
.label(Line::from(format!("..{}", block_number % 100)))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user