From 5c1e0522b755ea61ccb703561b8b8e8c362551c0 Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Tue, 15 Oct 2019 01:33:36 +0200 Subject: [PATCH] Fix failing tests --- src/path/path.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/path/path.rs b/src/path/path.rs index 4bc0757..63c8659 100644 --- a/src/path/path.rs +++ b/src/path/path.rs @@ -843,6 +843,12 @@ impl AsRef for String { } } +impl AsRef for std::path::PathBuf { + fn as_ref(&self) -> &Path { + Path::new(self.into()) + } +} + impl std::borrow::ToOwned for Path { type Owned = PathBuf;