Skip to content

Commit

Permalink
rustup
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Jan 30, 2015
1 parent b825bea commit 4213526
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion examples/nfl_plays.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(unstable)]
#![feature(path)]

extern crate csv;
extern crate "rustc-serialize" as rustc_serialize;
Expand Down
4 changes: 2 additions & 2 deletions examples/rational_numbers.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! This example shows how to write your own custom implementation of
//! `Decodable` to parse rational numbers.

#![allow(unstable)]
#![feature(collections, core)]

extern crate csv;
extern crate regex;
Expand All @@ -12,7 +12,7 @@ use std::str;
use regex::Regex;
use rustc_serialize::{Decodable, Decoder};

#[derive(Show)]
#[derive(Debug)]
struct Rational {
numerator: i64,
denominator: i64,
Expand Down
2 changes: 1 addition & 1 deletion examples/simple.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(unstable)]
#![feature(path)]

extern crate csv;

Expand Down
2 changes: 1 addition & 1 deletion examples/simple_missing.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(unstable)]
#![feature(path)]

extern crate csv;
extern crate "rustc-serialize" as rustc_serialize;
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_struct.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(unstable)]
#![feature(path)]

extern crate csv;
extern crate "rustc-serialize" as rustc_serialize;
Expand Down
2 changes: 1 addition & 1 deletion examples/stream.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(unstable)]
#![feature(core, io, std_misc)]

extern crate csv;

Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@
#![crate_name = "csv"]
#![doc(html_root_url = "http:https://burntsushi.net/rustdoc/csv")]

#![experimental]
#![deny(missing_docs)]
#![allow(unstable)]
#![allow(unused_features)] // some are used in `test` but not in library

extern crate rand;
extern crate "test" as stdtest;
#![feature(collections, core, hash, io, path, std_misc, test, unicode)]

#[cfg(test)]
extern crate "test" as stdtest;
extern crate "rustc-serialize" as rustc_serialize;

use std::error::Error as StdError;
Expand Down
4 changes: 0 additions & 4 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ impl<R: io::Reader> Reader<R> {
/// ### Example
///
/// ```rust
/// #![allow(unstable)]
///
/// let mut rdr = csv::Reader::from_string("a,b,c\n1,2,3");
///
/// let headers1 = rdr.headers().unwrap();
Expand All @@ -340,8 +338,6 @@ impl<R: io::Reader> Reader<R> {
/// returned in this example include the first record:
///
/// ```rust
/// #![allow(unstable)]
///
/// let mut rdr = csv::Reader::from_string("a,b,c\n1,2,3")
/// .has_headers(false);
///
Expand Down

0 comments on commit 4213526

Please sign in to comment.