From a92c13b1e248fd372b5e1d78d337a8b03479e967 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 11 Jul 2025 16:58:44 +0100 Subject: [PATCH] Move constant to top of impl block --- src/metadata/group.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/metadata/group.rs b/src/metadata/group.rs index 3be15c4d..02d09d86 100644 --- a/src/metadata/group.rs +++ b/src/metadata/group.rs @@ -17,6 +17,9 @@ pub struct Group { } impl Group { + /// The name of the group to which all plugins belong by default. + pub const DEFAULT_NAME: &'static str = "default"; + /// Construct a [Group] with the given name. #[must_use] pub fn new(name: String) -> Self { @@ -40,9 +43,6 @@ impl Group { self } - /// The name of the group to which all plugins belong by default. - pub const DEFAULT_NAME: &'static str = "default"; - /// Get the name of the group. pub fn name(&self) -> &str { &self.name