mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Merge pull request #3466 from Ms2ger/into_string
Remove redundant into_string() calls.; r=jdm
This commit is contained in:
commit
3b842c4f06
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ pub fn transform_text(text: &str, mode: CompressionMode,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return (out_str.into_string(), out_whitespace);
|
return (out_str, out_whitespace);
|
||||||
|
|
||||||
fn is_in_whitespace(ch: char, mode: CompressionMode) -> bool {
|
fn is_in_whitespace(ch: char, mode: CompressionMode) -> bool {
|
||||||
match (ch, mode) {
|
match (ch, mode) {
|
||||||
|
|
|
@ -36,7 +36,7 @@ pub fn parse_namespace_rule(rule: AtRule, namespaces: &mut NamespaceMap) {
|
||||||
match component_value {
|
match component_value {
|
||||||
Ident(value) => {
|
Ident(value) => {
|
||||||
if prefix.is_some() { syntax_error!() }
|
if prefix.is_some() { syntax_error!() }
|
||||||
prefix = Some(value.into_string());
|
prefix = Some(value);
|
||||||
},
|
},
|
||||||
URL(value) | String(value) => {
|
URL(value) | String(value) => {
|
||||||
if ns.is_some() { syntax_error!() }
|
if ns.is_some() { syntax_error!() }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue