forked from projectmoon/tenebrous-dicebot
From<String> for ListRoomsCommand
This commit is contained in:
parent
892ccf73e3
commit
589d0e0dbf
|
@ -14,10 +14,10 @@ impl From<ListRoomsCommand> for Box<dyn Command> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TryFrom<&str> for ListRoomsCommand {
|
impl TryFrom<String> for ListRoomsCommand {
|
||||||
type Error = BotError;
|
type Error = BotError;
|
||||||
|
|
||||||
fn try_from(input: &str) -> Result<Self, Self::Error> {
|
fn try_from(_: String) -> Result<Self, Self::Error> {
|
||||||
Ok(ListRoomsCommand)
|
Ok(ListRoomsCommand)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue