mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-28 05:21:23 +00:00
fix(clippy): ununsed_mut lint for layout (#285)
This lint is slightly more agressive in +nightly than it is in stable.
This commit is contained in:
parent
cf8eda04a1
commit
83d3ec73e7
@ -224,7 +224,7 @@ fn split(area: Rect, layout: &Layout) -> Rc<[Rect]> {
|
||||
.map(|_| Rect::default())
|
||||
.collect::<Rc<[Rect]>>();
|
||||
|
||||
let mut results = Rc::get_mut(&mut res).expect("newly created Rc should have no shared refs");
|
||||
let results = Rc::get_mut(&mut res).expect("newly created Rc should have no shared refs");
|
||||
|
||||
let dest_area = area.inner(&layout.margin);
|
||||
for (i, e) in elements.iter().enumerate() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user