Skip to content

Commit

Permalink
refactor: remove to_owned call
Browse files Browse the repository at this point in the history
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
  • Loading branch information
jdrouet committed Jul 22, 2024
1 parent c6ee2f7 commit fceca45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mrml-core/src/mj_text/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ impl<'root> Renderer<'root, MjText, ()> {
let table = Tag::table_presentation();
let tr = Tag::tr();
let td = Tag::td()
.add_attribute("height", height.to_owned())
.add_attribute("height", height)
.add_style("vertical-align", "top")
.add_style("height", height.to_owned());
.add_style("height", height);

cursor.buffer.start_conditional_tag();
table.render_open(&mut cursor.buffer)?;
Expand Down

0 comments on commit fceca45

Please sign in to comment.