aboutsummaryrefslogtreecommitdiff
path: root/src/world.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-11-07 01:59:57 +0100
committerDaniel Schadt <kingdread@gmx.de>2021-11-07 01:59:57 +0100
commit13257d8d88c0783b9a87e1796a4c6b0bad6caba9 (patch)
tree8f963de882f1c3d84987f199b296fec7fab57d07 /src/world.rs
parent5ce6fcc59bb988bda9a1bb9725a2fbcf2270b3c2 (diff)
downloadmodderbaas-13257d8d88c0783b9a87e1796a4c6b0bad6caba9.tar.gz
modderbaas-13257d8d88c0783b9a87e1796a4c6b0bad6caba9.tar.bz2
modderbaas-13257d8d88c0783b9a87e1796a4c6b0bad6caba9.zip
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.
Diffstat (limited to 'src/world.rs')
-rw-r--r--src/world.rs3
1 files changed, 2 insertions, 1 deletions
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<String> {
- let fallback = self.path
+ let fallback = self
+ .path
.file_name()
.map(|s| s.to_str().expect("Non-UTF8 directory encountered"));