-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependencies #58
Conversation
let format = tracing_subscriber::fmt::format().without_time().pretty(); | ||
let subscriber = tracing_subscriber::fmt() | ||
.with_max_level(Level::TRACE) | ||
.with_writer(MakeJsLogWriter::new()) | ||
.with_ansi(false) | ||
.event_format(format) | ||
.finish(); | ||
let subscriber = make_tracing_subscriber(None); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
matrix-org/matrix-rust-sdk#2856 changed the type of JsLoggingSubscriber
, and we may as well just use make_tracing_subscriber
rather than re-inventing it here.
@@ -13,7 +13,7 @@ where | |||
let constructor_name = Object::get_prototype_of(value).constructor().name(); | |||
|
|||
if constructor_name == classname { | |||
let pointer = Reflect::get(value, &JsValue::from_str("ptr")) | |||
let pointer = Reflect::get(value, &JsValue::from_str("__wbg_ptr")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems rather brittle but I guess the wbg dependency is pinned anyways 🥲
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally agree.
We need to get rid of this function anyway, per #51
@@ -13,7 +13,7 @@ where | |||
let constructor_name = Object::get_prototype_of(value).constructor().name(); | |||
|
|||
if constructor_name == classname { | |||
let pointer = Reflect::get(value, &JsValue::from_str("ptr")) | |||
let pointer = Reflect::get(value, &JsValue::from_str("__wbg_ptr")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems rather brittle but I guess the wbg dependency is pinned anyways 🥲
No description provided.