Skip to content

Commit

Permalink
💄
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed May 25, 2024
1 parent 3ad4540 commit e23086b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 3 additions & 3 deletions crates/runtimes/src/outputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -181,7 +181,7 @@ pub struct ExecutionView {
}

pub fn extract_image_output(mimetype: &MimeType, value: &Value) -> Result<OutputType> {
let media_type = match mimetype {
let _media_type = match mimetype {
// TODO: Introduce From<MimeType> for str in runtimelib
// We don't necessarily need it since we use guess_format, however we could skip
// it if we wanted to.
Expand Down
5 changes: 0 additions & 5 deletions crates/runtimes/src/runtimes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,6 @@ pub fn run(workspace: &mut Workspace, _: &Run, cx: &mut ViewContext<Workspace>)
);
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(())
})
Expand Down

0 comments on commit e23086b

Please # to comment.