more lowering

This commit is contained in:
nora 2023-05-22 22:14:53 +02:00
parent e68ec920f5
commit 8bf9849641
7 changed files with 295 additions and 17 deletions

View file

@ -14,7 +14,10 @@ pub struct Error {
}
impl Error {
pub fn new(msg: String, span: Span) -> Self {
Self { msg, span }
pub fn new(msg: impl Into<String>, span: Span) -> Self {
Self {
msg: msg.into(),
span,
}
}
}