diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 220cca3..f555653 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,6 @@ jobs: fail-fast: false matrix: component: - - clippy - rustfmt steps: - uses: actions/checkout@master @@ -41,9 +40,6 @@ jobs: - name: Install component shell: bash run: rustup component add ${{ matrix.component }} - - name: cargo clippy - if: matrix.component == 'clippy' - run: cargo clippy --all-features - name: cargo fmt if: matrix.component == 'rustfmt' run: cargo fmt -- --check diff --git a/.gitignore b/.gitignore index 6aa1064..555c10d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /target/ **/*.rs.bk Cargo.lock +.idea diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 5c98b42..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Default ignored files -/workspace.xml \ No newline at end of file diff --git a/.idea/futures-timer.iml b/.idea/futures-timer.iml deleted file mode 100644 index b7b4242..0000000 --- a/.idea/futures-timer.iml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 28a804d..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 38e13ee..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index f9173f4..059b97f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,13 +2,16 @@ //! //! # Examples //! -//! ``` +//! ```no_run +//! # #[async_std::main] +//! # async fn main() { //! use std::time::Duration; //! use futures_timer::Delay; //! use futures::executor::block_on; //! -//! let now = block_on(Delay::new(Duration::from_secs(3))); +//! let now = Delay::new(Duration::from_secs(3)).await; //! println!("waited for 3 secs"); +//! # } //! ``` #![deny(missing_docs)]