mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: eliminate of unnecessary file escapes
This commit is contained in:
parent
3fc42f65e8
commit
3eb2d439ca
16 changed files with 110 additions and 130 deletions
|
@ -64,7 +64,7 @@ impl ASTBuilder {
|
|||
CompleteArtifact<AST, ParserRunnerErrors>,
|
||||
IncompleteArtifact<AST, ParserRunnerErrors>,
|
||||
> {
|
||||
let name = Str::rc(self.runner.cfg().input.unescaped_filename());
|
||||
let name = Str::from(self.runner.cfg().input.filename());
|
||||
let mut desugarer = Desugarer::new();
|
||||
let artifact = self.runner.parse(src).map_err(|iart| {
|
||||
iart.map_mod(|module| {
|
||||
|
@ -87,7 +87,7 @@ impl ASTBuilder {
|
|||
CompleteArtifact<AST, ParserRunnerErrors>,
|
||||
IncompleteArtifact<AST, ParserRunnerErrors>,
|
||||
> {
|
||||
let name = Str::rc(self.runner.cfg().input.unescaped_filename());
|
||||
let name = Str::from(self.runner.cfg().input.filename());
|
||||
let artifact = self
|
||||
.runner
|
||||
.parse(src)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue