aboutsummaryrefslogtreecommitdiff
path: root/src/framework
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-09-30 17:12:35 +0200
committeracdenisSK <[email protected]>2017-09-30 17:12:35 +0200
commitf9efc213770f6e3054e2339473408ce676349016 (patch)
tree4c50aafe7aa9dca84bcea889c2a4f655170be0b7 /src/framework
parentMake the internal string public (diff)
downloadserenity-f9efc213770f6e3054e2339473408ce676349016.tar.xz
serenity-f9efc213770f6e3054e2339473408ce676349016.zip
Add a todo
Diffstat (limited to 'src/framework')
-rw-r--r--src/framework/standard/command.rs1
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))