Fixed an warning and adjusted CI config for min supported version.
This commit is contained in:
parent
ebdc022045
commit
e9401d9266
|
@ -1,8 +1,7 @@
|
||||||
language: rust
|
language: rust
|
||||||
sudo: false
|
sudo: false
|
||||||
rust:
|
rust:
|
||||||
# 1.8.0 is the earliest known version that Cargo does work for the current crates.io-index repo.
|
# 1.13.0 is the earliest version that Serde 0.9 tests, so we follow suit
|
||||||
# probably older versions work, but we are forced to use this as the minimum for Cargo...
|
|
||||||
- 1.13.0
|
- 1.13.0
|
||||||
- stable
|
- stable
|
||||||
- beta
|
- beta
|
||||||
|
@ -23,8 +22,8 @@ script:
|
||||||
- cargo test -v
|
- cargo test -v
|
||||||
- cargo build -v --features rustc-serialize
|
- cargo build -v --features rustc-serialize
|
||||||
- cargo test -v --features rustc-serialize --lib
|
- cargo test -v --features rustc-serialize --lib
|
||||||
- cargo build -v --features serde
|
- cargo build -v --features 'serde bincode'
|
||||||
- cargo test -v --features serde --lib
|
- cargo test -v --features 'serde bincode' --lib
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
irc:
|
irc:
|
||||||
|
|
|
@ -1486,7 +1486,6 @@ mod serde {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_serde_deserialize() {
|
fn test_serde_deserialize() {
|
||||||
use naive::date::{self, NaiveDate};
|
use naive::date::{self, NaiveDate};
|
||||||
use self::serde_json::from_str;
|
|
||||||
|
|
||||||
let from_str = |s: &str| serde_json::from_str::<NaiveDateTime>(s);
|
let from_str = |s: &str| serde_json::from_str::<NaiveDateTime>(s);
|
||||||
|
|
||||||
|
|
|
@ -1376,8 +1376,6 @@ mod serde {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_serde_deserialize() {
|
fn test_serde_deserialize() {
|
||||||
use self::serde_json::from_str;
|
|
||||||
|
|
||||||
let from_str = |s: &str| serde_json::from_str::<NaiveTime>(s);
|
let from_str = |s: &str| serde_json::from_str::<NaiveTime>(s);
|
||||||
|
|
||||||
assert_eq!(from_str(r#""00:00:00""#).ok(),
|
assert_eq!(from_str(r#""00:00:00""#).ok(),
|
||||||
|
|
Loading…
Reference in New Issue