From 6b62fda02923e0e1b0eb8160a6801ecc8362d025 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Tue, 28 Jan 2025 11:47:01 +0100 Subject: [PATCH] nixos/activation: format switch-to-configuration-ng/src/src/main.rs with rustfmt --- .../src/src/main.rs | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs b/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs index ecd6a6a71390..a64d8566225b 100644 --- a/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs +++ b/pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs @@ -887,10 +887,7 @@ impl std::fmt::Display for Job { fn new_dbus_proxies( conn: &LocalConnection, -) -> ( - Proxy<'_, &LocalConnection>, - Proxy<'_, &LocalConnection>, -) { +) -> (Proxy<'_, &LocalConnection>, Proxy<'_, &LocalConnection>) { ( conn.with_proxy( "org.freedesktop.systemd1", @@ -1221,16 +1218,16 @@ won't take effect until you reboot the system. unit.as_str(), "suspend.target" | "hibernate.target" | "hybrid-sleep.target" ) || parse_systemd_bool( - Some(&new_unit_info), - "Unit", - "RefuseManualStart", - false, - ) || parse_systemd_bool( - Some(&new_unit_info), - "Unit", - "X-OnlyManualStart", - false, - )) { + Some(&new_unit_info), + "Unit", + "RefuseManualStart", + false, + ) || parse_systemd_bool( + Some(&new_unit_info), + "Unit", + "X-OnlyManualStart", + false, + )) { units_to_start.insert(unit.to_string(), ()); record_unit(START_LIST_FILE, unit); // Don't spam the user with target units that always get started.