cl-ast: Fix typo in ast_impl::convert impl From<AsRef<str>> for PathPart

This commit is contained in:
John 2024-04-22 20:52:12 -05:00
parent a3a87e0b67
commit 169f61144b

View File

@ -679,7 +679,7 @@ mod convert {
impl<T: AsRef<str>> From<T> for PathPart { impl<T: AsRef<str>> From<T> for PathPart {
fn from(value: T) -> Self { fn from(value: T) -> Self {
match value.as_ref() { match value.as_ref() {
"Self" => PathPart::SelfKw, "self" => PathPart::SelfKw,
"super" => PathPart::SuperKw, "super" => PathPart::SuperKw,
ident => PathPart::Ident(ident.into()), ident => PathPart::Ident(ident.into()),
} }