From 77c84eb66cefde656cc74865bee2e3bc7a24245a Mon Sep 17 00:00:00 2001 From: Valentin Date: Sun, 10 Jun 2018 14:01:36 +0200 Subject: Fixes according to Fenrir's review --- ctr-std/src/path.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ctr-std/src/path.rs') diff --git a/ctr-std/src/path.rs b/ctr-std/src/path.rs index 696711a..861c7dd 100644 --- a/ctr-std/src/path.rs +++ b/ctr-std/src/path.rs @@ -201,6 +201,9 @@ impl<'a> Prefix<'a> { os_str_as_u8_slice(s).len() } match *self { + #[cfg(target_os = "horizon")] + Verbatim(x) => 1 + os_str_len(x), + #[cfg(target_os = "windows")] Verbatim(x) => 4 + os_str_len(x), VerbatimUNC(x, y) => { 8 + os_str_len(x) + -- cgit v1.2.3