cleanup
This commit is contained in:
1 parent
791518eb3d
commit
f8ea1fb4f7
6 files changed
+36
-4
No files matched your search
@@ -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