1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: avoid nightly-only hints
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2025-04-07
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/crates/shrink-to-fit/src/lib.rs
+++ b/crates/shrink-to-fit/src/lib.rs
@@ -17,9 +17,6 @@
//! assert_eq!(vec.capacity(), 3);
//! ```
#![deny(warnings)]
-#![cfg_attr(docsrs, feature(doc_cfg))]
-#![cfg_attr(feature = "nightly", feature(specialization))]
-#![cfg_attr(feature = "nightly", allow(incomplete_features))]
use std::{
collections::{BinaryHeap, HashMap, HashSet, VecDeque},
@@ -34,7 +31,6 @@
mod maybe;
#[cfg(feature = "derive")]
-#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
pub use shrink_to_fit_macro::ShrinkToFit;
/// Recursively calls `shrink_to_fit` on all elements of the container.
|