Skip to content

Commit 1d5ff7c

Browse files
lqdcompiler-errors
authored andcommitted
format's last theorem: remove formatless formatting
1 parent c3f64c5 commit 1d5ff7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/formality-core/src/parse/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ where
635635
let id = self.identifier()?;
636636
match self.scope.lookup(&id) {
637637
Some(v) => Ok(v),
638-
None => Err(ParseError::at(text0, format!("unrecognized variable"))),
638+
None => Err(ParseError::at(text0, "unrecognized variable".to_string())),
639639
}
640640
}
641641

@@ -678,7 +678,7 @@ where
678678
Ok(t) => Ok(t),
679679
Err(_) => Err(ParseError::at(
680680
skip_whitespace(text0),
681-
format!("invalid number"),
681+
"invalid number".to_string(),
682682
)),
683683
}
684684
}

0 commit comments

Comments
 (0)