fmt: fix unnecessary line break in array init (fix #11448) (#11562)

This commit is contained in:
yuyi 2021-09-21 21:20:09 +08:00 committed by GitHub
parent d6fa6a459c
commit 108a01d65f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 532 additions and 518 deletions

View file

@ -54,8 +54,7 @@ fn should_escape(c byte, mode EncodingMode) bool {
// escape them (because hosts can`t use %-encoding for
// ASCII bytes).
if c in [`!`, `$`, `&`, `\\`, `(`, `)`, `*`, `+`, `,`, `;`, `=`, `:`, `[`, `]`, `<`, `>`,
`"`,
] {
`"`] {
return false
}
}