mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fix warnings in libstyle.
This commit is contained in:
parent
b655b54f80
commit
1ceadf3813
2 changed files with 6 additions and 2 deletions
|
@ -5,9 +5,13 @@
|
||||||
#![feature(plugin)]
|
#![feature(plugin)]
|
||||||
#![feature(int_uint)]
|
#![feature(int_uint)]
|
||||||
#![feature(box_syntax)]
|
#![feature(box_syntax)]
|
||||||
|
#![feature(core)]
|
||||||
|
#![feature(std_misc)]
|
||||||
|
#![feature(hash)]
|
||||||
|
#![feature(collections)]
|
||||||
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
#![allow(missing_copy_implementations)]
|
#![allow(missing_copy_implementations)]
|
||||||
#![allow(unstable)]
|
|
||||||
|
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] extern crate bitflags;
|
#[macro_use] extern crate bitflags;
|
||||||
|
|
|
@ -61,7 +61,7 @@ pub struct StyleRule {
|
||||||
|
|
||||||
impl Stylesheet {
|
impl Stylesheet {
|
||||||
pub fn from_bytes_iter<I: Iterator<Item=Vec<u8>>>(
|
pub fn from_bytes_iter<I: Iterator<Item=Vec<u8>>>(
|
||||||
mut input: I, base_url: Url, protocol_encoding_label: Option<&str>,
|
input: I, base_url: Url, protocol_encoding_label: Option<&str>,
|
||||||
environment_encoding: Option<EncodingRef>, origin: Origin) -> Stylesheet {
|
environment_encoding: Option<EncodingRef>, origin: Origin) -> Stylesheet {
|
||||||
let mut bytes = vec!();
|
let mut bytes = vec!();
|
||||||
// TODO: incremental decoding and tokenization/parsing
|
// TODO: incremental decoding and tokenization/parsing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue