aboutsummaryrefslogtreecommitdiffstats
path: root/components/devtools/actors/thread.rs
diff options
context:
space:
mode:
authoreri <eri@inventati.org>2024-07-08 13:18:35 +0200
committerGitHub <noreply@github.com>2024-07-08 11:18:35 +0000
commit2888193cfe3d1b3317984324add07a5e4e4228dc (patch)
treeced4d51b83cc9e4f49b953c9e2183e8021c0e0ec /components/devtools/actors/thread.rs
parentb243457ccc6cd5a2dab58d9c9ff8b6fee1db6a20 (diff)
downloadservo-2888193cfe3d1b3317984324add07a5e4e4228dc.tar.gz
servo-2888193cfe3d1b3317984324add07a5e4e4228dc.zip
DevTools: Replace camel case variable names (#32726)
* refactor: rename to snake case * refactor: more renaming * chore: format * chore: clean
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(),
},