mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-11 07:13:43 +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
|
||||
/// `*.exe` name by requiring a valid PE header.
|
||||
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;
|
||||
}
|
||||
let name = path
|
||||
|
||||
Reference in New Issue
Block a user