os:
  - linux
  - osx
language: rust
rust:
  - stable
  - beta
  - nightly
cache: rust
script:
  - cargo test --all --verbose
  - rustup component add clippy rustfmt &&
    cargo clippy

os:
  - linux
  - osx
language: rust
rust:
  - stable
  - beta
  - nightly
cache: rust
matrix:
  allow_failures:
    - rust: nightly
script:
  - cargo test --all --verbose
  - rustup component add clippy rustfmt &&
    cargo clippy

Fix ci failed for nightly
Fix ci failed for nightly

Signed-off-by: Siyu Wang <2fae9300eb4069117fc5cd438e6278060cbee80e@gmail.com>
