Skip to content

Commit

Permalink
fix some deprecated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilsen84 committed Aug 8, 2023
1 parent be0c0fd commit 579ae4f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
42 changes: 21 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/chrome_debugger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl ChromeDebugger {
}

pub fn send(&mut self, method: &str, params: serde_json::Value) -> Result<(), Box<dyn Error>> {
self.ws.write_message(Message::Text(
self.ws.write(Message::Text(
serde_json::to_string(&json!({
"id": 1,
"method": method,
Expand All @@ -29,7 +29,7 @@ impl ChromeDebugger {
))?;

if cfg!(debug_assertions) {
println!("{}", self.ws.read_message()?);
println!("{}", self.ws.read()?);
}

Ok(())
Expand Down

0 comments on commit 579ae4f

Please sign in to comment.