mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix warnings in util.
This commit is contained in:
parent
b25564440d
commit
830e6741c7
9 changed files with 35 additions and 32 deletions
|
@ -273,7 +273,7 @@ pub fn parse_legacy_color(mut input: &str) -> Result<RGBA,()> {
|
|||
|
||||
// Step 12.
|
||||
let mut length = input.len() / 3;
|
||||
let (mut red, mut green, mut blue) = (input.slice_to(length),
|
||||
let (mut red, mut green, mut blue) = (&input[..length],
|
||||
&input[length..length * 2],
|
||||
&input[length * 2..]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue