diff options
Diffstat (limited to 'components/util/str.rs')
-rw-r--r-- | components/util/str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/util/str.rs b/components/util/str.rs index 4b785de0a3b..80cdd1ae230 100644 --- a/components/util/str.rs +++ b/components/util/str.rs @@ -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..]); |