Skip to content

Commit 6bf0590

Browse files
Merge pull request #235 from iqlusioninc/path-self-as-ref
hkd32: impl AsRef<Path> for Path
2 parents f3c9349 + 0947831 commit 6bf0590

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hkd32/src/path.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ impl Path {
149149
}
150150
}
151151

152+
impl AsRef<Path> for Path {
153+
fn as_ref(&self) -> &Self {
154+
self
155+
}
156+
}
157+
152158
#[cfg(feature = "alloc")]
153159
impl Debug for Path {
154160
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {

0 commit comments

Comments
 (0)