Skip to content

Commit 98eeff2

Browse files
committed
chore: fmt
1 parent 98ac2b5 commit 98eeff2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use colored::*;
33
use nix::unistd::{getpid, setpgid};
44
use std::panic;
55

6-
use flatplay::FlatpakManager;
76
use flatplay::process::{is_process_running, kill_process_group};
87
use flatplay::state::State;
8+
use flatplay::FlatpakManager;
99

1010
#[derive(Parser)]
1111
#[command(author, version, about, long_about = None)]

src/utils.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ use std::env;
44
use std::process::Command;
55

66
pub fn get_host_env() -> HashMap<String, String> {
7-
let forwarded_env_keys = ["COLORTERM",
7+
let forwarded_env_keys = [
8+
"COLORTERM",
89
"DESKTOP_SESSION",
910
"LANG",
1011
"WAYLAND_DISPLAY",
@@ -14,7 +15,8 @@ pub fn get_host_env() -> HashMap<String, String> {
1415
"XDG_SESSION_ID",
1516
"XDG_SESSION_TYPE",
1617
"XDG_VTNR",
17-
"AT_SPI_BUS_ADDRESS"];
18+
"AT_SPI_BUS_ADDRESS",
19+
];
1820

1921
let mut env_vars = HashMap::new();
2022

@@ -60,9 +62,7 @@ pub fn get_a11y_bus_args() -> Vec<String> {
6062
vec![
6163
format!("--bind-mount=/run/flatpak/at-spi-bus={}", unix_path),
6264
if !suffix.is_empty() {
63-
format!(
64-
"--env=AT_SPI_BUS_ADDRESS=unix:path=/run/flatpak/at-spi-bus{suffix}"
65-
)
65+
format!("--env=AT_SPI_BUS_ADDRESS=unix:path=/run/flatpak/at-spi-bus{suffix}")
6666
} else {
6767
"--env=AT_SPI_BUS_ADDRESS=unix:path=/run/flatpak/at-spi-bus".to_string()
6868
},

0 commit comments

Comments
 (0)