mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:27:35 +00:00
LibDiff: Make Diff::parse_hunks fallible
Currently the only error that can happen is an OOM. However, in the future there may be other errors that this function may throw, such as detecting an invalid patch.
This commit is contained in:
parent
dbd838efdf
commit
23df5748f6
4 changed files with 10 additions and 9 deletions
|
@ -32,6 +32,6 @@ struct Hunk {
|
|||
Vector<DeprecatedString> added_lines;
|
||||
};
|
||||
|
||||
Vector<Hunk> parse_hunks(DeprecatedString const& diff);
|
||||
ErrorOr<Vector<Hunk>> parse_hunks(DeprecatedString const& diff);
|
||||
HunkLocation parse_hunk_location(StringView location_line);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue