[go: nahoru, domu]

Skip to content

Commit

Permalink
📝 refine allow clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Xudong-Huang committed Mar 4, 2024
1 parent e164cd6 commit c088521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gen_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl<A> Gn<A> {

impl<A: Any> Gn<A> {
/// create a new generator with default stack size
#[cfg_attr(feature = "cargo-clippy", allow(clippy::new_ret_no_self))]
#[allow(clippy::new_ret_no_self)]
#[deprecated(since = "0.6.18", note = "please use `scope` version instead")]
pub fn new<'a, T: Any, F>(f: F) -> Generator<'a, A, T>
where
Expand Down

0 comments on commit c088521

Please sign in to comment.