fix compiler warnings (half)

This commit is contained in:
🪞👃🪞 2024-06-17 19:52:33 +03:00
parent c51bcbfaa8
commit 7fb9369012
9 changed files with 50 additions and 221 deletions

View file

@ -14,14 +14,14 @@ impl Chain {
}
}
pub fn process (state: &mut Chain, client: &Client, scope: &ProcessScope) -> Control {
pub fn process (_: &mut Chain, _: &Client, _: &ProcessScope) -> Control {
Control::Continue
}
pub fn render (state: &Chain, buf: &mut Buffer, area: Rect)
-> Usually<Rect>
{
let Rect { x, y, width, height } = area;
let Rect { x, y, .. } = area;
let area = Rect { x, y, width: 40, height: 30 };
let mut y = area.y;
buf.set_string(area.x, y, "", Style::default().black());
@ -51,6 +51,6 @@ pub fn render (state: &Chain, buf: &mut Buffer, area: Rect)
Ok(Rect { x: area.x, y: area.y, width: x, height: y })
}
pub fn handle (state: &mut Chain, event: &AppEvent) -> Result<(), Box<dyn Error>> {
pub fn handle (_: &mut Chain, _: &AppEvent) -> Result<(), Box<dyn Error>> {
Ok(())
}