Skip to content

Commit

Permalink
fix: if data-target-path ends with a slash, remove it
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Feb 29, 2024
1 parent 83bdc5a commit e97d7d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pipelines/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ impl fmt::Display for AttrWriter<'_> {
fn data_target_path(attrs: &Attrs) -> Result<Option<PathBuf>> {
Ok(attrs
.get(ATTR_TARGET_PATH)
.map(|val| val.trim_end_matches('/'))
.map(|val| val.parse())
.transpose()?)
}

0 comments on commit e97d7d3

Please sign in to comment.