diff options
Diffstat (limited to 'src/parse/mod.rs')
-rw-r--r-- | src/parse/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/mod.rs b/src/parse/mod.rs index cc6d92b..9663086 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -106,9 +106,9 @@ pub struct Error { } impl Error { - fn new(input: &str, e: pest::error::Error<ast::Rule>) -> Self { + fn new(input: String, e: pest::error::Error<ast::Rule>) -> Self { Self { - input: input.to_string(), + input, e, } } |