mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Rename CommaSeparated to OneOrMoreCommaSeparated, reflecting its behavior.
This commit is contained in:
parent
4701850f37
commit
9ec8418d8c
4 changed files with 9 additions and 9 deletions
|
@ -11,7 +11,7 @@ use error_reporting::ParseErrorReporter;
|
|||
#[cfg(feature = "gecko")]
|
||||
use gecko_bindings::sugar::refptr::{GeckoArcPrincipal, GeckoArcURI};
|
||||
use servo_url::ServoUrl;
|
||||
use style_traits::CommaSeparated;
|
||||
use style_traits::OneOrMoreCommaSeparated;
|
||||
use stylesheets::{MemoryHoleReporter, Origin};
|
||||
|
||||
/// Extra data that the style backend may need to parse stylesheets.
|
||||
|
@ -104,7 +104,7 @@ pub trait Parse : Sized {
|
|||
fn parse(context: &ParserContext, input: &mut Parser) -> Result<Self, ()>;
|
||||
}
|
||||
|
||||
impl<T> Parse for Vec<T> where T: Parse + CommaSeparated {
|
||||
impl<T> Parse for Vec<T> where T: Parse + OneOrMoreCommaSeparated {
|
||||
fn parse(context: &ParserContext, input: &mut Parser) -> Result<Self, ()> {
|
||||
input.parse_comma_separated(|input| T::parse(context, input))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue