tests_build: clippy let_and_return

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas 2026-09-30 11:08:42 -04:00
parent d5acaa8946
commit 049c2baebd
1 changed files with 9 additions and 11 deletions

View File

@ -324,8 +324,7 @@ fn image_doc(s: &mut Session) -> NodeId {
fn add_image(s: &mut Session, r: &drawcraft_trace::Raster, xf: Affine) -> NodeId {
let png = r.encode_png();
let (w, h) = (r.width, r.height);
let id = s
.edit("img", |d, sel| {
s.edit("img", |d, sel| {
d.images.insert("img1".into(), ImageBlob { mime: "image/png".into(), bytes: Arc::new(png) });
let id = d.alloc_id();
let l = d.default_layer();
@ -333,8 +332,7 @@ fn add_image(s: &mut Session, r: &drawcraft_trace::Raster, xf: Affine) -> NodeId
sel.set([id]);
Ok(id)
})
.unwrap();
id
.unwrap()
}
fn traced_paths(n: &Node) -> Vec<Arc<Node>> {