Skip to content

Commit 2d08c46

Browse files
authored
Merge pull request #52 from async-rs/disable-clippy
Disable clippy & cleanup
2 parents 799ed3b + aa7d2bc commit 2d08c46

File tree

8 files changed

+6
-42
lines changed

8 files changed

+6
-42
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
fail-fast: false
3232
matrix:
3333
component:
34-
- clippy
3534
- rustfmt
3635
steps:
3736
- uses: actions/checkout@master
@@ -41,9 +40,6 @@ jobs:
4140
- name: Install component
4241
shell: bash
4342
run: rustup component add ${{ matrix.component }}
44-
- name: cargo clippy
45-
if: matrix.component == 'clippy'
46-
run: cargo clippy --all-features
4743
- name: cargo fmt
4844
if: matrix.component == 'rustfmt'
4945
run: cargo fmt -- --check

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/target/
22
**/*.rs.bk
33
Cargo.lock
4+
.idea

.idea/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.idea/futures-timer.iml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
//!
33
//! # Examples
44
//!
5-
//! ```
5+
//! ```no_run
6+
//! # #[async_std::main]
7+
//! # async fn main() {
68
//! use std::time::Duration;
79
//! use futures_timer::Delay;
810
//! use futures::executor::block_on;
911
//!
10-
//! let now = block_on(Delay::new(Duration::from_secs(3)));
12+
//! let now = Delay::new(Duration::from_secs(3)).await;
1113
//! println!("waited for 3 secs");
14+
//! # }
1215
//! ```
1316
1417
#![deny(missing_docs)]

0 commit comments

Comments
 (0)