aboutsummaryrefslogtreecommitdiffstats
path: root/tests/create_directories.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2025-01-10 16:23:00 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2025-01-10 16:23:00 +0000
commit4dc634655edac54e9638e8390d89a96e235522c0 (patch)
tree15f8cc8bdb2046a70a5f7552964f1781dfced72c /tests/create_directories.rs
parentRemove some unnecessary #[allow(dead_code)] (diff)
downloadminiserve-4dc634655edac54e9638e8390d89a96e235522c0.tar.gz
miniserve-4dc634655edac54e9638e8390d89a96e235522c0.zip
Reorganize imports to be more consistent
Diffstat (limited to '')
-rw-r--r--tests/create_directories.rs18
1 files changed, 11 insertions, 7 deletions
diff --git a/tests/create_directories.rs b/tests/create_directories.rs
index 380c796..c15b40f 100644
--- a/tests/create_directories.rs
+++ b/tests/create_directories.rs
@@ -1,15 +1,19 @@
-mod fixtures;
-
-use fixtures::{server, Error, TestServer, DIRECTORIES};
-use reqwest::blocking::{multipart, Client};
-use rstest::rstest;
-use select::document::Document;
-use select::predicate::{Attr, Text};
#[cfg(unix)]
use std::os::unix::fs::symlink as symlink_dir;
#[cfg(windows)]
use std::os::windows::fs::symlink_dir;
+use reqwest::blocking::{multipart, Client};
+use rstest::rstest;
+use select::{
+ document::Document,
+ predicate::{Attr, Text},
+};
+
+mod fixtures;
+
+use crate::fixtures::{server, Error, TestServer, DIRECTORIES};
+
/// This should work because the flags for uploading files and creating directories
/// are set, and the directory name and path are valid.
#[rstest]