Fix bare url warnings in multipart docs (#1289)

This commit is contained in:
nickelc
2021-06-22 16:18:46 +02:00
committed by GitHub
parent f5fe17876a
commit eee19c5f3c

View File

@@ -408,7 +408,7 @@ impl PartMetadata {
}
}
/// https://url.spec.whatwg.org/#fragment-percent-encode-set
// https://url.spec.whatwg.org/#fragment-percent-encode-set
const FRAGMENT_ENCODE_SET: &AsciiSet = &percent_encoding::CONTROLS
.add(b' ')
.add(b'"')
@@ -416,12 +416,12 @@ const FRAGMENT_ENCODE_SET: &AsciiSet = &percent_encoding::CONTROLS
.add(b'>')
.add(b'`');
/// https://url.spec.whatwg.org/#path-percent-encode-set
// https://url.spec.whatwg.org/#path-percent-encode-set
const PATH_ENCODE_SET: &AsciiSet = &FRAGMENT_ENCODE_SET.add(b'#').add(b'?').add(b'{').add(b'}');
const PATH_SEGMENT_ENCODE_SET: &AsciiSet = &PATH_ENCODE_SET.add(b'/').add(b'%');
/// https://tools.ietf.org/html/rfc8187#section-3.2.1
// https://tools.ietf.org/html/rfc8187#section-3.2.1
const ATTR_CHAR_ENCODE_SET: &AsciiSet = &NON_ALPHANUMERIC
.remove(b'!')
.remove(b'#')