aboutsummaryrefslogtreecommitdiff
path: root/src/framework
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-09-30 17:12:35 +0200
committerZeyla Hellyer <[email protected]>2017-10-09 15:45:48 -0700
commit5cb73c9559e7b771f9a519c617acb020a93586d3 (patch)
treef0226ed957497a8d6a4903e1d0bc347157e1a18b /src/framework
parentMake the internal string public (diff)
downloadserenity-5cb73c9559e7b771f9a519c617acb020a93586d3.tar.xz
serenity-5cb73c9559e7b771f9a519c617acb020a93586d3.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 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))