Skip to content

Commit fcd01fc

Browse files
authored
Merge pull request #5 from viruscamp/master
add `#![no_std]` to make it can be used in a `no_std` environment
2 parents 69d651c + 617318a commit fcd01fc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@
3030
//! ```
3131
//!
3232
33+
#![no_std]
3334
#![feature(generators, generator_trait)]
3435
// #![feature(conservative_impl_trait)]
3536

36-
use std::ops::{Generator, GeneratorState};
37-
use std::iter::Iterator;
38-
use std::marker::Unpin;
39-
use std::pin::Pin;
37+
use core::ops::{Generator, GeneratorState};
38+
use core::iter::Iterator;
39+
use core::marker::Unpin;
40+
use core::pin::Pin;
4041

4142
/// a iterator that holds an internal generator representing
4243
/// the iteration state

0 commit comments

Comments
 (0)