Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/ungrammar/src/error.rs')
| -rw-r--r-- | lib/ungrammar/src/error.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ungrammar/src/error.rs b/lib/ungrammar/src/error.rs index 355e0b7ebc..144f9fc0e9 100644 --- a/lib/ungrammar/src/error.rs +++ b/lib/ungrammar/src/error.rs @@ -27,10 +27,7 @@ impl std::error::Error for Error {} impl Error { pub(crate) fn with_location(self, location: Location) -> Error { - Error { - location: Some(location), - ..self - } + Error { location: Some(location), ..self } } } |