Skip to content

Commit f17236a

Browse files
committed
Remove unneeded ASCII check
1 parent 034aa11 commit f17236a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pct_enc/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ impl<E: Encoder> EStr<E> {
253253
/// ```
254254
pub fn split(&self, delim: char) -> Split<'_, E> {
255255
assert!(
256-
delim.is_ascii() && table::RESERVED.allows(delim),
256+
table::RESERVED.allows(delim),
257257
"splitting with non-reserved character"
258258
);
259259
Split {
@@ -288,7 +288,7 @@ impl<E: Encoder> EStr<E> {
288288
#[must_use]
289289
pub fn split_once(&self, delim: char) -> Option<(&Self, &Self)> {
290290
assert!(
291-
delim.is_ascii() && table::RESERVED.allows(delim),
291+
table::RESERVED.allows(delim),
292292
"splitting with non-reserved character"
293293
);
294294
self.inner
@@ -322,7 +322,7 @@ impl<E: Encoder> EStr<E> {
322322
#[must_use]
323323
pub fn rsplit_once(&self, delim: char) -> Option<(&Self, &Self)> {
324324
assert!(
325-
delim.is_ascii() && table::RESERVED.allows(delim),
325+
table::RESERVED.allows(delim),
326326
"splitting with non-reserved character"
327327
);
328328
self.inner

0 commit comments

Comments
 (0)