Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Nov 17, 2024
1 parent a13069f commit 640c924
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ pub struct EdPatch {
impl crate::ContentPatch for EdPatch {
fn apply_exact(&self, orig: &[u8]) -> Result<Vec<u8>, crate::ApplyError> {
let lines = splitlines(orig).collect::<Vec<_>>();
let result = self
.apply(&lines)
.map_err(crate::ApplyError::Conflict)?;
let result = self.apply(&lines).map_err(crate::ApplyError::Conflict)?;
Ok(result)
}
}
Expand Down

0 comments on commit 640c924

Please sign in to comment.