Skip to content

Commit fd880c6

Browse files
committed
Fix CI
Clippy has all features enabled, including the flatpak flag
1 parent aaad2c7 commit fd880c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/cli/src/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fn parse_path_with_position(
6161

6262
fn main() -> Result<()> {
6363
// Exit flatpak sandbox
64-
#[cfg(feature = "flatpak")]
64+
#[cfg(all(feature = "flatpak", target_os = "linux"))]
6565
flatpak::restart_to_host();
6666

6767
// Intercept version designators
@@ -279,7 +279,7 @@ mod linux {
279279
}
280280
}
281281

282-
#[cfg(feature = "flatpak")]
282+
#[cfg(all(feature = "flatpak", target_os = "linux"))]
283283
mod flatpak {
284284
use std::ffi::OsString;
285285
use std::path::PathBuf;
@@ -329,7 +329,7 @@ mod flatpak {
329329
}
330330

331331
fn get_xdg_env_args() -> Vec<OsString> {
332-
let keep_keys = vec![
332+
let keep_keys = [
333333
"XDG_DATA_HOME",
334334
"XDG_CONFIG_HOME",
335335
"XDG_CACHE_HOME",

0 commit comments

Comments
 (0)