Improve Windows path prefix parsing
This commit is contained in:
@@ -168,8 +168,8 @@ pub enum Prefix<'a> {
|
||||
|
||||
/// Device namespace prefix, e.g., `\\.\COM42`.
|
||||
///
|
||||
/// Device namespace prefixes consist of `\\.\` immediately followed by the
|
||||
/// device name.
|
||||
/// Device namespace prefixes consist of `\\.\` (possibly using `/`
|
||||
/// instead of `\`), immediately followed by the device name.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
DeviceNS(#[stable(feature = "rust1", since = "1.0.0")] &'a OsStr),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user