Skip to content

Commit

Permalink
Fix MSRV & update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-dupre committed Feb 12, 2024
1 parent 07a96f4 commit 51e4d4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.16.0

### Enhancements

* Added `slice_str` util.

## 0.15.8

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ pub fn slice_str<'a>(s: &'a str, head: &str, bounds: Range<usize>, tail: &str) -
if head.is_empty() && tail.is_empty() {
Cow::Borrowed(slice)
} else {
Cow::Owned(format!("{head}{slice}{tail}"))
Cow::Owned(format!("{}{}{}", head, slice, tail))
}
}
}
Expand Down

0 comments on commit 51e4d4f

Please sign in to comment.