Fix URL encoding of % sign in Rust Doc.

This commit is contained in:
TumoiYorozu 2023-06-13 20:14:50 +09:00
parent caeea3f0a2
commit 7b55f08516

View File

@ -1940,8 +1940,6 @@ fn dont_escape(c: u8) -> bool {
// While the same is not true for hashes, rustdoc only needs to be
// consistent with itself when encoding them.
st += "+";
} else if b == b'%' {
st += "%%";
} else {
write!(st, "%{:02X}", b).unwrap();
}