mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove some as_slice calls.
This commit is contained in:
parent
4ee89363fb
commit
6a55ae06d7
34 changed files with 79 additions and 79 deletions
|
@ -592,7 +592,7 @@ mod system_reporter {
|
|||
};
|
||||
if looking_for == LookingFor::Segment {
|
||||
// Look for a segment info line.
|
||||
let cap = match seg_re.captures(line.as_slice()) {
|
||||
let cap = match seg_re.captures(&line) {
|
||||
Some(cap) => cap,
|
||||
None => continue,
|
||||
};
|
||||
|
@ -617,7 +617,7 @@ mod system_reporter {
|
|||
looking_for = LookingFor::Rss;
|
||||
} else {
|
||||
// Look for an "Rss:" line.
|
||||
let cap = match rss_re.captures(line.as_slice()) {
|
||||
let cap = match rss_re.captures(&line) {
|
||||
Some(cap) => cap,
|
||||
None => continue,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue