aboutsummaryrefslogtreecommitdiffstats
path: root/components/devtools/actors/thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/devtools/actors/thread.rs')
-rw-r--r--components/devtools/actors/thread.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/components/devtools/actors/thread.rs b/components/devtools/actors/thread.rs
index 00cd0839ab2..f3416b8f721 100644
--- a/components/devtools/actors/thread.rs
+++ b/components/devtools/actors/thread.rs
@@ -12,6 +12,7 @@ use crate::protocol::JsonPacketStream;
use crate::StreamId;
#[derive(Serialize)]
+#[serde(rename_all = "camelCase")]
struct ThreadAttached {
from: String,
#[serde(rename = "type")]
@@ -19,9 +20,9 @@ struct ThreadAttached {
actor: String,
frame: u32,
error: u32,
- recordingEndpoint: u32,
- executionPoint: u32,
- poppedFrames: Vec<PoppedFrameMsg>,
+ recording_endpoint: u32,
+ execution_point: u32,
+ popped_frames: Vec<PoppedFrameMsg>,
why: WhyMsg,
}
@@ -98,9 +99,9 @@ impl Actor for ThreadActor {
actor: registry.new_name("pause"),
frame: 0,
error: 0,
- recordingEndpoint: 0,
- executionPoint: 0,
- poppedFrames: vec![],
+ recording_endpoint: 0,
+ execution_point: 0,
+ popped_frames: vec![],
why: WhyMsg {
type_: "attached".to_owned(),
},