summaryrefslogtreecommitdiff
path: root/dhall_core
diff options
context:
space:
mode:
authorNadrieril2019-03-08 22:59:18 +0100
committerNadrieril2019-03-08 22:59:18 +0100
commitc6aafe818ca56ec8bc6d3cd27824eba0a2d6b874 (patch)
tree57e4ef2c9d063744f3dfaf9693ad353b146438a4 /dhall_core
parentd3f4a32d1e3d39c8d42306e5ca5ad4bb256edcd8 (diff)
Clean up some of the mess
Diffstat (limited to 'dhall_core')
-rw-r--r--dhall_core/src/core.rs15
1 files changed, 13 insertions, 2 deletions
diff --git a/dhall_core/src/core.rs b/dhall_core/src/core.rs
index 04c3961..72389c5 100644
--- a/dhall_core/src/core.rs
+++ b/dhall_core/src/core.rs
@@ -268,7 +268,16 @@ pub enum Builtin {
}
pub trait StringLike:
- Display + fmt::Debug + Clone + Hash + Ord + Eq + Into<String> + Default + From<String>
+ Display
+ + fmt::Debug
+ + Clone
+ + Hash
+ + Ord
+ + Eq
+ + Default
+ + Into<String>
+ + From<String>
+ + From<&'static str>
{
}
@@ -279,8 +288,10 @@ impl<T> StringLike for T where
+ Hash
+ Ord
+ Eq
+ + Default
+ Into<String>
- + Default + From<String>
+ + From<String>
+ + From<&'static str>
{
}