mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 06:21:36 +03:00
Make clear it's a JsValue.
This commit is contained in:
parent
126efd5a95
commit
36cb50445f
@ -529,7 +529,8 @@ impl Clone for JsValue {
|
|||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
impl fmt::Debug for JsValue {
|
impl fmt::Debug for JsValue {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
f.write_str(&self.as_debug_string())
|
use std::fmt::Write;
|
||||||
|
write!(f, "JsValue({})", self.as_debug_string())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -538,7 +539,7 @@ impl fmt::Debug for JsValue {
|
|||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
// TODO before merge - this is less info than before - is this OK? Can we do the above
|
// TODO before merge - this is less info than before - is this OK? Can we do the above
|
||||||
// without using allocation (no_std)?
|
// without using allocation (no_std)?
|
||||||
f.write_str("[object]")
|
f.write_str("JsValue(..)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user