enable rust_2018_idioms
for doctests
Signed-off-by: ozkanonur <work@onurozkan.dev>
This commit is contained in:
parent
8b8110e146
commit
4e7c14fe9f
37 changed files with 125 additions and 101 deletions
|
@ -117,7 +117,7 @@ use crate::sys::path::{is_sep_byte, is_verbatim_sep, parse_prefix, MAIN_SEP_STR}
|
|||
/// use std::path::Prefix::*;
|
||||
/// use std::ffi::OsStr;
|
||||
///
|
||||
/// fn get_path_prefix(s: &str) -> Prefix {
|
||||
/// fn get_path_prefix(s: &str) -> Prefix<'_> {
|
||||
/// let path = Path::new(s);
|
||||
/// match path.components().next().unwrap() {
|
||||
/// Component::Prefix(prefix_component) => prefix_component.kind(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue