libstd: remove unnecessary as_slice() calls
This commit is contained in:
parent
09f7713dd4
commit
60338d91c4
19 changed files with 118 additions and 121 deletions
|
|
@ -941,6 +941,6 @@ mod tests {
|
|||
|
||||
let input = r"\foo\bar\baz";
|
||||
let path: WindowsPath = WindowsPath::new(input.to_c_str());
|
||||
assert_eq!(path.as_str().unwrap(), input.as_slice());
|
||||
assert_eq!(path.as_str().unwrap(), input);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue