Skip to content

Commit

Permalink
Add support for older rustc versions
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldg committed Jun 27, 2022
1 parent 019663a commit 8a79334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-once-cell"
version = "0.4.0"
version = "0.4.1"
authors = ["Daniel De Graaf <code@danieldg.net>"]
license = "MIT OR Apache-2.0"
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ where
F: Future<Output = T>,
{
/// Creates a new lazy value with the given initializing future.
pub const fn new(future: F) -> Self {
pub fn new(future: F) -> Self {
Self::from_future(future)
}

Expand Down

0 comments on commit 8a79334

Please sign in to comment.