From 13257d8d88c0783b9a87e1796a4c6b0bad6caba9 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sun, 7 Nov 2021 01:59:57 +0100 Subject: remove fs_extra crate The function that we needed from there is very small and easily implemented ourselves. On the other hand, fs_extra seemed to have some weird options going on and implemented the copy in a bit of a roundabout manner. --- src/world.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/world.rs') diff --git a/src/world.rs b/src/world.rs index 79ba3f9..31ddbd4 100644 --- a/src/world.rs +++ b/src/world.rs @@ -37,7 +37,8 @@ impl World { /// Returns the name of the world. pub fn world_name(&self) -> Result { - let fallback = self.path + let fallback = self + .path .file_name() .map(|s| s.to_str().expect("Non-UTF8 directory encountered")); -- cgit v1.2.3