mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
clippy: fix warnings in components/gfx (#31560)
* clippy: fix warnings in components/gfx * refactor: switched the order of impl so that its intent is clearer * fix: add font context default in other platforms
This commit is contained in:
parent
1771f9a9a1
commit
88033bd654
17 changed files with 195 additions and 234 deletions
|
@ -113,12 +113,7 @@ pub fn fixed_to_float(before: usize, f: i32) -> f64 {
|
|||
}
|
||||
|
||||
pub fn is_bidi_control(c: char) -> bool {
|
||||
match c {
|
||||
'\u{202A}'..='\u{202E}' => true,
|
||||
'\u{2066}'..='\u{2069}' => true,
|
||||
'\u{200E}' | '\u{200F}' | '\u{061C}' => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(c, '\u{202A}'..='\u{202E}' | '\u{2066}'..='\u{2069}' | '\u{200E}' | '\u{200F}' | '\u{061C}')
|
||||
}
|
||||
|
||||
pub fn unicode_plane(codepoint: char) -> u32 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue