diff options
| author | acdenisSK <[email protected]> | 2017-09-30 17:12:35 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-09-30 17:12:35 +0200 |
| commit | f9efc213770f6e3054e2339473408ce676349016 (patch) | |
| tree | 4c50aafe7aa9dca84bcea889c2a4f655170be0b7 /src/framework | |
| parent | Make the internal string public (diff) | |
| download | serenity-f9efc213770f6e3054e2339473408ce676349016.tar.xz serenity-f9efc213770f6e3054e2339473408ce676349016.zip | |
Add a todo
Diffstat (limited to 'src/framework')
| -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 b2949d9..6330810 100644 --- a/src/framework/standard/command.rs +++ b/src/framework/standard/command.rs @@ -29,6 +29,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)) |