diff --git a/crates/runtimes/src/outputs.rs b/crates/runtimes/src/outputs.rs index 95c24637f5501..ec201cb470051 100644 --- a/crates/runtimes/src/outputs.rs +++ b/crates/runtimes/src/outputs.rs @@ -29,8 +29,8 @@ impl ImageView { let image = self.image.clone(); div() - .h(Pixels(height as f32)) - .w(Pixels(width as f32)) + .h(Pixels(height)) + .w(Pixels(width)) .child(img(image)) .into_any_element() } @@ -181,7 +181,7 @@ pub struct ExecutionView { } pub fn extract_image_output(mimetype: &MimeType, value: &Value) -> Result { - let media_type = match mimetype { + let _media_type = match mimetype { // TODO: Introduce From for str in runtimelib // We don't necessarily need it since we use guess_format, however we could skip // it if we wanted to. diff --git a/crates/runtimes/src/runtimes.rs b/crates/runtimes/src/runtimes.rs index 96b06cceb7627..79b9e4be3c869 100644 --- a/crates/runtimes/src/runtimes.rs +++ b/crates/runtimes/src/runtimes.rs @@ -393,11 +393,6 @@ pub fn run(workspace: &mut Workspace, _: &Run, cx: &mut ViewContext) ); editor.replace_blocks(replacements, None, cx); })?; - - // runtime_manager.update(&mut cx, |runtime_manager, cx| { - // editor_runtime_block.block_id = block_id; - // // runtime_manager.update_block(editor_runtime_block, update, cx); - // }); } anyhow::Ok(()) })