Skip to content

Commit 74562f6

Browse files
committed
Change ParsingError to own its internal Strings
1 parent 471b2a2 commit 74562f6

File tree

5 files changed

+99
-104
lines changed

5 files changed

+99
-104
lines changed

src/parsing/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ pub fn load(filename: &Path) -> Result<String, LoadingError> {
3737

3838
/// Parse text into a Document object, or return the list of errors
3939
/// encountered.
40-
pub fn parse<'i>(
41-
filename: &'i Path,
42-
content: &'i str,
43-
) -> Result<Document<'i>, Vec<ParsingError<'i>>> {
40+
pub fn parse<'i>(filename: &'i Path, content: &'i str) -> Result<Document<'i>, Vec<ParsingError>> {
4441
let result = parser::parse_with_recovery(filename, content);
4542

4643
match result {

0 commit comments

Comments
 (0)