Skip to content

Commit cc727a2

Browse files
authored
[rust] Minor smell fixes in Selenium Manager (#11497)
1 parent 811a8fe commit cc727a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/src/files.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl BrowserPath {
5353

5454
pub fn create_path_if_not_exists(path: &Path) {
5555
if !path.exists() {
56-
fs::create_dir_all(&path).unwrap();
56+
fs::create_dir_all(path).unwrap();
5757
}
5858
}
5959

@@ -178,5 +178,5 @@ pub fn parse_version(version_text: String) -> Result<String, Box<dyn Error>> {
178178
return Err("Wrong browser/driver version".into());
179179
}
180180
let re = Regex::new(r"[^\d^.]").unwrap();
181-
Ok(re.replace_all(&*version_text, "").to_string())
181+
Ok(re.replace_all(&version_text, "").to_string())
182182
}

0 commit comments

Comments
 (0)