diff options
author | Nadrieril | 2020-02-02 17:49:49 +0000 |
---|---|---|
committer | Nadrieril | 2020-02-02 17:49:49 +0000 |
commit | b6625eccbf3f2d1bcfe1a88f4d556439281e91de (patch) | |
tree | 5ce5357114855d828aad5a6ba394e2b75334c5d0 /dhall/src/semantics/tck/tyexpr.rs | |
parent | 4f98c23963e82eaf08c9d7291d0988d13571d337 (diff) |
Use Spans consistently by value
Diffstat (limited to '')
-rw-r--r-- | dhall/src/semantics/tck/tyexpr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhall/src/semantics/tck/tyexpr.rs b/dhall/src/semantics/tck/tyexpr.rs index 1a048f9..1886646 100644 --- a/dhall/src/semantics/tck/tyexpr.rs +++ b/dhall/src/semantics/tck/tyexpr.rs @@ -48,8 +48,8 @@ impl TyExpr { pub fn kind(&self) -> &TyExprKind { &*self.kind } - pub fn span(&self) -> &Span { - &self.span + pub fn span(&self) -> Span { + self.span.clone() } pub fn get_type(&self) -> Result<Type, TypeError> { match &self.ty { |