mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Move constant to top of impl block
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user