refactor: change function definitions to const for improved performance and clarity
This commit is contained in:
@@ -20,7 +20,7 @@ impl Drop for CommandChildGuard {
|
||||
}
|
||||
|
||||
impl CommandChildGuard {
|
||||
pub fn new(child: CommandChild) -> Self {
|
||||
pub const fn new(child: CommandChild) -> Self {
|
||||
Self(Some(child))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user