mirror of
https://github.com/Noratrieb/uwucc.git
synced 2026-01-16 01:25:07 +01:00
more lowering
This commit is contained in:
parent
e68ec920f5
commit
8bf9849641
7 changed files with 295 additions and 17 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue