We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 220217a commit 8c85c5bCopy full SHA for 8c85c5b
library/std/src/sys/windows/path.rs
@@ -78,7 +78,7 @@ impl<'a> PrefixParserSlice<'a, '_> {
78
fn strip_prefix(&self, prefix: &str) -> Option<Self> {
79
self.prefix[self.index..]
80
.starts_with(prefix.as_bytes())
81
- .then(|| Self { index: self.index + prefix.len(), ..*self })
+ .then_some(Self { index: self.index + prefix.len(), ..*self })
82
}
83
84
fn prefix_bytes(&self) -> &'a [u8] {
0 commit comments