Skip to content

Commit afe492f

Browse files
committed
Fix formatting
1 parent 3c217e3 commit afe492f

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

rust/src/edge.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ use crate::{
2828
REG_PV_ARG, REG_VERSION_ARG, STABLE, SeleniumManager, create_http_client, get_binary_extension,
2929
path_to_string,
3030
};
31-
use anyhow::anyhow;
3231
use anyhow::Error;
32+
use anyhow::anyhow;
3333
use reqwest::Client;
3434
use serde::{Deserialize, Serialize};
3535
use std::collections::HashMap;
@@ -284,11 +284,7 @@ impl SeleniumManager for EdgeManager {
284284
"win64"
285285
}
286286
} else if MACOS.is(os) {
287-
if ARM64.is(arch) {
288-
"mac64_m1"
289-
} else {
290-
"mac64"
291-
}
287+
if ARM64.is(arch) { "mac64_m1" } else { "mac64" }
292288
} else if LINUX.is(os) && ARM64.is(arch) {
293289
return Err(anyhow!(
294290
"Linux arm64 is not supported yet by Microsoft Edge. Please try another browser."

rust/tests/browser_download_tests.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,13 @@ fn browser_latest_download_test(#[case] browser: String) {
6363
#[case("edge", "beta")]
6464
fn browser_version_download_test(#[case] browser: String, #[case] browser_version: String) {
6565
if OS.eq("windows") && browser.eq("edge") {
66-
println!("Skipping Edge download test on Windows since the installation requires admin privileges");
66+
println!(
67+
"Skipping Edge download test on Windows since the installation requires admin privileges"
68+
);
6769
} else if OS.eq("linux") && ARCH.eq("aarch64") && !browser.eq("firefox") {
68-
println!("Skipping non-Firefox download test on Linux arm64 since no other browsers are supported yet");
70+
println!(
71+
"Skipping non-Firefox download test on Linux arm64 since no other browsers are supported yet"
72+
);
6973
} else {
7074
let mut cmd = get_selenium_manager();
7175
cmd.args([

rust/tests/cache_tests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
19-
2018
mod common;
2119

2220
#[cfg(not(all(target_os = "linux", target_arch = "aarch64")))]

rust/tests/webview_tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
1918
mod common;
2019

2120
#[cfg(not(all(target_os = "linux", target_arch = "aarch64")))]

0 commit comments

Comments
 (0)