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:
Josh McKinney 2023-06-30 15:01:58 -07:00 committed by GitHub
parent cf8eda04a1
commit 83d3ec73e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {