We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f64c5 commit 1d5ff7cCopy full SHA for 1d5ff7c
crates/formality-core/src/parse/parser.rs
@@ -635,7 +635,7 @@ where
635
let id = self.identifier()?;
636
match self.scope.lookup(&id) {
637
Some(v) => Ok(v),
638
- None => Err(ParseError::at(text0, format!("unrecognized variable"))),
+ None => Err(ParseError::at(text0, "unrecognized variable".to_string())),
639
}
640
641
@@ -678,7 +678,7 @@ where
678
Ok(t) => Ok(t),
679
Err(_) => Err(ParseError::at(
680
skip_whitespace(text0),
681
- format!("invalid number"),
+ "invalid number".to_string(),
682
)),
683
684
0 commit comments