cleanup
This commit is contained in:
@@ -45,3 +45,16 @@ pub trait IntoCommandDefinition: Sized {
|
||||
|
||||
fn parse(command: Command) -> Result<Self, IntoCommandDefinitionError>;
|
||||
}
|
||||
|
||||
impl IntoCommandDefinition for () {
|
||||
fn create(name: String) -> CommandDefinition {
|
||||
CommandDefinition {
|
||||
name,
|
||||
parameters: vec![],
|
||||
}
|
||||
}
|
||||
|
||||
fn parse(_: Command) -> Result<Self, IntoCommandDefinitionError> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user