From 08bf22181e497e087db0fe2470c577c3164de53f Mon Sep 17 00:00:00 2001 From: Ron Waldon-Howe Date: Sat, 16 Nov 2024 11:16:20 +1100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Move=20private=20`const`?= =?UTF-8?q?=20below=20all=20`pub`=20items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/dbus2/busd/pull/159#discussion_r1842068254 --- src/config.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/config.rs b/src/config.rs index 6a35a6e..65a887e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -10,12 +10,6 @@ use xml::{ Document, Element, PolicyContext, PolicyElement, RuleAttributes, RuleElement, TypeElement, }; -const STANDARD_SYSTEM_SERVICEDIRS: &[&str] = &[ - "/usr/local/share/dbus-1/system-services", - "/usr/share/dbus-1/system-services", - "/lib/dbus-1/system-services", -]; - #[derive(Clone, Debug, Deserialize, PartialEq)] pub enum Access { Allow, @@ -580,6 +574,12 @@ impl From for SendOperation { } } +const STANDARD_SYSTEM_SERVICEDIRS: &[&str] = &[ + "/usr/local/share/dbus-1/system-services", + "/usr/share/dbus-1/system-services", + "/lib/dbus-1/system-services", +]; + #[cfg(test)] mod tests { use super::*;