mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-19 03:20:14 +00:00
fmt
This commit is contained in:
parent
f969c7c6d0
commit
8092f31a29
6 changed files with 15 additions and 20 deletions
|
@ -226,10 +226,7 @@ pub fn bad_input_to_syntax_error<'a>(bad_input: BadInputError, pos: Position) ->
|
|||
}
|
||||
|
||||
impl<'a, T> SourceError<'a, T> {
|
||||
pub fn new(
|
||||
problem: T,
|
||||
state: &State<'a>,
|
||||
) -> Self {
|
||||
pub fn new(problem: T, state: &State<'a>) -> Self {
|
||||
Self {
|
||||
problem,
|
||||
bytes: state.original_bytes(),
|
||||
|
@ -242,11 +239,8 @@ impl<'a, T> SourceError<'a, T> {
|
|||
bytes: self.bytes,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn into_parse_problem(
|
||||
self,
|
||||
filename: std::path::PathBuf,
|
||||
) -> ParseProblem<'a, T> {
|
||||
|
||||
pub fn into_parse_problem(self, filename: std::path::PathBuf) -> ParseProblem<'a, T> {
|
||||
ParseProblem {
|
||||
pos: Position::default(),
|
||||
problem: self.problem,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue