Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
grelner committed Nov 25, 2024
1 parent f01f95e commit afde9fa
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions thirtyfour/src/common/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,8 @@ impl FormatRequestData for Command {
Command::GetCurrentUrl => {
RequestData::new(Method::GET, format!("session/{}/url", session_id))
}
Command::Back => {
RequestData::new(Method::POST, format!("session/{}/back", session_id))
.add_body(json!({}))
}
Command::Back => RequestData::new(Method::POST, format!("session/{}/back", session_id))
.add_body(json!({})),
Command::Forward => {
RequestData::new(Method::POST, format!("session/{}/forward", session_id))
.add_body(json!({}))
Expand Down Expand Up @@ -402,10 +400,7 @@ impl FormatRequestData for Command {
),
Command::GetElementProperty(element_id, property_name) => RequestData::new(
Method::GET,
format!(
"session/{}/element/{}/property/{}",
session_id, element_id, property_name
),
format!("session/{}/element/{}/property/{}", session_id, element_id, property_name),
),
Command::GetElementCssValue(element_id, property_name) => RequestData::new(
Method::GET,
Expand Down

0 comments on commit afde9fa

Please sign in to comment.