From eae1eac7048cd87d2775cdc470a295b9d2ee7346 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Tue, 3 Sep 2019 13:56:55 +0100 Subject: No need for as_ref call --- dhall_syntax/src/core/import.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhall_syntax/src/core/import.rs b/dhall_syntax/src/core/import.rs index ef696b9..5e0ff6c 100644 --- a/dhall_syntax/src/core/import.rs +++ b/dhall_syntax/src/core/import.rs @@ -116,7 +116,7 @@ impl Canonicalize for File { loop { let component = file_path_components.next(); - match component.as_ref() { + match component { // ─────────────────── // canonicalize(ε) = ε None => break, -- cgit v1.2.3