Fixing a crash (asserting that the contents of an edit is non-empty)

pmeunier
Apr 18, 2023, 1:50 PM
4ODDR4JLI3OJSKCIOJZNTWEQC2KRW2VV4I6S4RYMOCRKWUM52DPAC

Dependencies

  • [2] YQMLICLW Fix the hunk_roundtrip test, simplify code, improve test coverage, fix some edge cases.
  • [3] 5FI6SBEZ Re-implement change printing and parsing
  • [4] MQ7TZOT6 Edits can delete lines too

Change contents

  • replacement in libpijul/src/change/parse.rs at line 160
    [2.1318][2.1318:1341]()
    contents_minus
    [2.1318]
    [3.446]
    if contents_minus.is_empty() {
    contents_minus
    } else {
    return Err(nom::Err::Error(nom::error::Error::new(
    i,
    nom::error::ErrorKind::Verify,
    )))
    }