nixos/activation: format switch-to-configuration-ng/src/src/main.rs with rustfmt
This commit is contained in:
parent
e6bc540ce0
commit
6b62fda029
@ -887,10 +887,7 @@ impl std::fmt::Display for Job {
|
|||||||
|
|
||||||
fn new_dbus_proxies(
|
fn new_dbus_proxies(
|
||||||
conn: &LocalConnection,
|
conn: &LocalConnection,
|
||||||
) -> (
|
) -> (Proxy<'_, &LocalConnection>, Proxy<'_, &LocalConnection>) {
|
||||||
Proxy<'_, &LocalConnection>,
|
|
||||||
Proxy<'_, &LocalConnection>,
|
|
||||||
) {
|
|
||||||
(
|
(
|
||||||
conn.with_proxy(
|
conn.with_proxy(
|
||||||
"org.freedesktop.systemd1",
|
"org.freedesktop.systemd1",
|
||||||
@ -1221,16 +1218,16 @@ won't take effect until you reboot the system.
|
|||||||
unit.as_str(),
|
unit.as_str(),
|
||||||
"suspend.target" | "hibernate.target" | "hybrid-sleep.target"
|
"suspend.target" | "hibernate.target" | "hybrid-sleep.target"
|
||||||
) || parse_systemd_bool(
|
) || parse_systemd_bool(
|
||||||
Some(&new_unit_info),
|
Some(&new_unit_info),
|
||||||
"Unit",
|
"Unit",
|
||||||
"RefuseManualStart",
|
"RefuseManualStart",
|
||||||
false,
|
false,
|
||||||
) || parse_systemd_bool(
|
) || parse_systemd_bool(
|
||||||
Some(&new_unit_info),
|
Some(&new_unit_info),
|
||||||
"Unit",
|
"Unit",
|
||||||
"X-OnlyManualStart",
|
"X-OnlyManualStart",
|
||||||
false,
|
false,
|
||||||
)) {
|
)) {
|
||||||
units_to_start.insert(unit.to_string(), ());
|
units_to_start.insert(unit.to_string(), ());
|
||||||
record_unit(START_LIST_FILE, unit);
|
record_unit(START_LIST_FILE, unit);
|
||||||
// Don't spam the user with target units that always get started.
|
// Don't spam the user with target units that always get started.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user