fix: use placeholder as default type in Generate function.

This commit is contained in:
Dawer 2021-09-04 13:43:36 +05:00
parent 5506e0dfaf
commit a6c650edf6
2 changed files with 31 additions and 28 deletions

View file

@ -95,6 +95,9 @@ pub fn lifetime(text: &str) -> ast::Lifetime {
pub fn ty(text: &str) -> ast::Type {
ty_from_text(text)
}
pub fn ty_placeholder() -> ast::Type {
ty_from_text("_")
}
pub fn ty_unit() -> ast::Type {
ty_from_text("()")
}