mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-08-27 21:30:23 +02:00
chore: lint
This commit is contained in:
@@ -193,7 +193,7 @@ mod windows {
|
|||||||
/// legacy Chromium-named build). Guards against archives wrongly given a
|
/// legacy Chromium-named build). Guards against archives wrongly given a
|
||||||
/// `*.exe` name by requiring a valid PE header.
|
/// `*.exe` name by requiring a valid PE header.
|
||||||
fn is_wayfern_exe(path: &Path) -> bool {
|
fn is_wayfern_exe(path: &Path) -> bool {
|
||||||
if !path.extension().is_some_and(|ext| ext == "exe") || !is_pe_executable(path) {
|
if path.extension().is_none_or(|ext| ext != "exe") || !is_pe_executable(path) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
let name = path
|
let name = path
|
||||||
|
|||||||
Reference in New Issue
Block a user