From 8d4d01106e2e10b08100805d40bfa19a7357e900 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sun, 4 Apr 2021 00:12:02 -0700 Subject: [PATCH] Fix file name test for Windows. --- core/lib/src/form/name/file_name.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/lib/src/form/name/file_name.rs b/core/lib/src/form/name/file_name.rs index 0c56174b..bcbf9319 100644 --- a/core/lib/src/form/name/file_name.rs +++ b/core/lib/src/form/name/file_name.rs @@ -102,7 +102,8 @@ impl FileName { /// assert_eq!(name.as_str(), Some("foo")); /// /// let name = FileName::new("b:c"); - /// assert_eq!(name.as_str(), Some("b")); + /// #[cfg(unix)] assert_eq!(name.as_str(), Some("b")); + /// #[cfg(not(unix))] assert_eq!(name.as_str(), Some("c")); /// /// let name = FileName::new("//./.<>"); /// assert_eq!(name.as_str(), None);