WarningsProvider {
const WARNINGS_KEY: &'static str = "__warnings";
/// Creates a new warnings provider.
@@ -41,9 +41,7 @@ impl
WarningsProvider
{
};
Self::new(provider, figment.profile().clone(), old_warnings)
}
-}
-impl WarningsProvider {
/// Collects all warnings.
pub fn collect_warnings(&self) -> Result, Error> {
let data = self.provider.data().unwrap_or_default();
@@ -103,12 +101,10 @@ impl Provider for WarningsProvider {
}
fn data(&self) -> Result