Fix clippy warning

This commit is contained in:
Joscha 2024-01-05 13:23:18 +01:00
parent 2c7888fa41
commit 77b4f825c9

View file

@ -465,7 +465,7 @@ impl<E> Widget<E> for Editor<'_> {
Ok(Size::new(width, height)) Ok(Size::new(width, height))
} }
fn draw(mut self, frame: &mut Frame) -> Result<(), E> { fn draw(self, frame: &mut Frame) -> Result<(), E> {
let size = frame.size(); let size = frame.size();
let indices = self.indices(frame.widthdb(), Some(size.width)); let indices = self.indices(frame.widthdb(), Some(size.width));
let rows = self.rows(&indices); let rows = self.rows(&indices);