Skip to content

Commit

Permalink
clean up test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jfredett committed Oct 6, 2024
1 parent 3b8ef1b commit e7d57fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ mod tests {
hazel.render(f);
});

let mut expected = Buffer::with_lines(vec![
let expected = Buffer::with_lines(vec![
" Placeholder R N B Q K B N R ",
" Placeholder a8 b8 c8 d8 e8 f8 g8 h8 ",
" Placeholder P P P P P P P P ",
Expand Down
2 changes: 1 addition & 1 deletion src/ui/widgets/fen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl FEN {
}

#[inline(always)]
pub fn center(mut self) -> Self {
pub fn center(self) -> Self {
self.alignment(Alignment::Center)
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/ui/widgets/tile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ mod tests {
let mut actual = Buffer::empty(rect);
actual.set_style(rect, Style::default().fg(Color::White).bg(Color::Black));

let mut tile = Tile::new();
let tile = Tile::new();
tile.render(rect, &mut actual);

// FIXME: https://github.com/ratatui/ratatui/issues/605 This issue does what I _wish_ this
Expand Down Expand Up @@ -155,7 +155,7 @@ mod tests {
let mut actual = Buffer::empty(rect);
actual.set_style(rect, Style::default().fg(Color::White).bg(Color::Black));

let mut tile = Tile::new();
let tile = Tile::new();
tile.render(rect, &mut actual);

// FIXME: see above
Expand Down

0 comments on commit e7d57fc

Please sign in to comment.