Skip to content
This repository was archived by the owner on Oct 9, 2019. It is now read-only.

Commit cceff70

Browse files
taiki-eyoshuawuyts
authored andcommitted
Remove #![feature(futures_api)] (#2)
* Remove #![feature(futures_api)] * Change CI config to build on beta * Fix clippy error/warning
1 parent 4494fc2 commit cceff70

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

Diff for: .travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
language: rust
22
rust:
3-
- stable
3+
- beta
44

55
before_script: |
66
rustup component add rustfmt-preview &&
77
rustup component add clippy-preview
88
script: |
99
cargo fmt -- --check &&
10-
cargo clippy -- -D clippy &&
10+
cargo clippy -- -D clippy::all &&
1111
cargo build --verbose &&
1212
cargo test --verbose
1313
cache: cargo

Diff for: README.md

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Async datagram traits.
1111
## Examples
1212
__Basic usage__
1313
```rust
14-
#![feature(futures_api)]
15-
1614
use async_datagram::AsyncDatagram;
1715
use std::task::{Context, Poll};
1816
use std::pin::Pin;

Diff for: src/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
//! ## Example
99
//!
1010
//! ```rust
11-
//! #![feature(futures_api)]
12-
//!
1311
//! use async_datagram::AsyncDatagram;
1412
//! use std::task::{Context, Poll};
1513
//! use std::pin::Pin;
@@ -40,8 +38,6 @@
4038
//! }
4139
//! ```
4240
43-
#![feature(futures_api)]
44-
4541
use std::pin::Pin;
4642
use std::task::{Context, Poll};
4743

@@ -70,6 +66,7 @@ pub trait AsyncDatagram {
7066
///
7167
/// On success, returns the number of bytes read and the target from whence
7268
/// the data came.
69+
#[allow(clippy::type_complexity)]
7370
fn poll_recv_from(
7471
self: Pin<&mut Self>,
7572
cx: &mut Context<'_>,

Diff for: tests/test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)