Skip to content

Commit

Permalink
chore: remove unnecessary to_string
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyboyQCD committed Nov 6, 2024
1 parent 7961777 commit d287dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/engine/src/builtins/number/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ impl Number {
#[allow(clippy::wrong_self_convention)]
pub(crate) fn to_js_string(x: f64) -> JsString {
let mut buffer = ryu_js::Buffer::new();
js_string!(buffer.format(x).to_string())
js_string!(buffer.format(x))
}

/// `Number.prototype.toString( [radix] )`
Expand Down

0 comments on commit d287dc6

Please sign in to comment.