summaryrefslogtreecommitdiff
path: root/dhall
diff options
context:
space:
mode:
authorNadrieril2019-12-20 18:16:51 +0000
committerNadrieril2019-12-20 18:16:51 +0000
commit99a2fdf5bf92d051d154c24ce95c444bccb30609 (patch)
tree84f9a9ce5272f9cedcc9ce8fac74dc3dcb4bf735 /dhall
parent515f6d70cf724d9927f4466ed1cd4300d20b4b09 (diff)
Remove an unused impl
Diffstat (limited to '')
-rw-r--r--dhall/src/syntax/ast/expr.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/dhall/src/syntax/ast/expr.rs b/dhall/src/syntax/ast/expr.rs
index a85b837..9f19ddb 100644
--- a/dhall/src/syntax/ast/expr.rs
+++ b/dhall/src/syntax/ast/expr.rs
@@ -347,19 +347,13 @@ impl From<NaiveDouble> for f64 {
}
}
-// This is only for the specific `Label` type, not generic
+/// This is only for the specific `Label` type, not generic
impl From<Label> for V<Label> {
fn from(x: Label) -> V<Label> {
V(x, 0)
}
}
-impl<'a> From<&'a Label> for V<Label> {
- fn from(x: &'a Label) -> V<Label> {
- V(x.clone(), 0)
- }
-}
-
impl<Embed: PartialEq> std::cmp::PartialEq for Expr<Embed> {
fn eq(&self, other: &Self) -> bool {
self.0.as_ref().0 == other.0.as_ref().0