Skip to content

Commit af38726

Browse files
lilyballalexcrichton
authored andcommitted
path: clean up some lint warnings and an obsolete comment
Get rid of the unnecessary parenthesies that crept into some macros. Remove a FIXME that was already fixed. Fix a comment that wasn't rendering correctly in rustdoc.
1 parent 498a606 commit af38726

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libstd/path/windows.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ pub fn prefix(path: &Path) -> Option<PathPrefix> {
865865
path.prefix
866866
}
867867

868-
/// Returns whether the Path's prefix is a verbatim prefix, i.e. \\?\
868+
/// Returns whether the Path's prefix is a verbatim prefix, i.e. `\\?\`
869869
#[inline]
870870
pub fn is_verbatim(path: &Path) -> bool {
871871
prefix_is_verbatim(path.prefix)
@@ -926,7 +926,6 @@ pub enum PathPrefix {
926926
DiskPrefix
927927
}
928928

929-
// FIXME (#8169): Make private once visibility is fixed
930929
fn parse_prefix<'a>(mut path: &'a str) -> Option<PathPrefix> {
931930
if path.starts_with("\\\\") {
932931
// \\

0 commit comments

Comments
 (0)