Move constant to top of impl block

This commit is contained in:
Oliver Hamlet
2025-07-22 19:56:20 +01:00
parent c0d848a83b
commit a92c13b1e2
+3 -3
View File
@@ -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