We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10163c7 commit 3e3e2aaCopy full SHA for 3e3e2aa
percent_encoding/lib.rs
@@ -252,6 +252,8 @@ impl<'a> Iterator for PercentEncode<'a> {
252
self.bytes = remaining;
253
Some(percent_encode_byte(first_byte))
254
} else {
255
+ // The unsafe blocks here are appropriate because the bytes are
256
+ // confirmed as a subset of UTF-8 in should_percent_encode.
257
for (i, &byte) in remaining.iter().enumerate() {
258
if self.ascii_set.should_percent_encode(byte) {
259
// 1 for first_byte + i for previous iterations of this loop
0 commit comments