Skip to content

Commit

Permalink
fix child paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseditson committed Jan 21, 2025
1 parent 2b75483 commit 029e93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Display for ArchivalEvent {
format!("Update order of {} '{}'", evt.object, evt.filename)
}
ArchivalEvent::AddChild(evt) => {
let child_name = evt.path.child_name().unwrap();
let child_name = &evt.path.first().to_string();
format!(
"Add {} child to {} '{}'",
indefinite(child_name),
Expand All @@ -74,7 +74,7 @@ impl Display for ArchivalEvent {
)
}
ArchivalEvent::RemoveChild(evt) => {
let child_name = evt.path.child_name().unwrap();
let child_name = &evt.path.first().to_string();
format!(
"Remove {} child from {} '{}'",
indefinite(child_name),
Expand Down

0 comments on commit 029e93f

Please # to comment.