Fixed constructor args #60

This commit is contained in:
2026-06-03 19:51:27 +02:00
parent 269e43930f
commit c07e0bcb3e
4 changed files with 53 additions and 4 deletions
+14
View File
@@ -100,3 +100,17 @@ impl Expression {
}
}
}
impl From<Path> for ExprPath {
fn from(path: Path) -> Self {
Self(
path.0
.into_iter()
.map(|v| ExprPathSegment {
ident: v,
generics: None,
})
.collect(),
)
}
}