diff options
| author | acdenisSK <[email protected]> | 2017-09-30 17:12:35 +0200 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-09 15:45:48 -0700 |
| commit | 5cb73c9559e7b771f9a519c617acb020a93586d3 (patch) | |
| tree | f0226ed957497a8d6a4903e1d0bc347157e1a18b /src/framework/standard/command.rs | |
| parent | Make the internal string public (diff) | |
| download | serenity-5cb73c9559e7b771f9a519c617acb020a93586d3.tar.xz serenity-5cb73c9559e7b771f9a519c617acb020a93586d3.zip | |
Add a todo
Diffstat (limited to 'src/framework/standard/command.rs')
| -rw-r--r-- | src/framework/standard/command.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/framework/standard/command.rs b/src/framework/standard/command.rs index a163641..5910684 100644 --- a/src/framework/standard/command.rs +++ b/src/framework/standard/command.rs @@ -26,6 +26,7 @@ pub enum CommandOrAlias { #[derive(Clone, Debug)] pub struct Error(pub String); +// TODO: Have seperate `From<(&)String>` and `From<&str>` impls via specialization impl<D: fmt::Display> From<D> for Error { fn from(d: D) -> Self { Error(format!("{}", d)) |