# RUSTSEC-2019-0040: boxfnonce obsolete with release of Rust 1.35.0

- Database: RustSec
- Published: 2019-06-20
- Modified: 2023-03-12

## Affected versions

- boxfnonce (crates.io): all versions

## Description

[This](https://github.com/stbuehler/rust-boxfnonce/commit/058ac7e1a7d732076da9d8a37baa66bcb67758d8) commit marks the `boxfnonce` crate as obsolete and the GitHub repo has since been archived.

The functionality of `boxfnonce` has been added to Rust since 1.35.0. Use `Box<dyn FnOnce(...) -> ...>`.

## References

- https://crates.io/crates/boxfnonce
- https://rustsec.org/advisories/RUSTSEC-2019-0040.html
- https://github.com/stbuehler/rust-boxfnonce/commit/058ac7e1a7d732076da9d8a37baa66bcb67758d8

Page: https://cve.now/RUSTSEC-2019-0040

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
