From b559d04bfad5ad3b54791a33a6cc503e3f8b39f7 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Thu, 22 Feb 2024 18:20:04 +0100 Subject: [PATCH] Remove pointless doc test --- src/licenses/cfg.rs | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/licenses/cfg.rs b/src/licenses/cfg.rs index 76e07e7f..1599421a 100644 --- a/src/licenses/cfg.rs +++ b/src/licenses/cfg.rs @@ -1,26 +1,5 @@ #![cfg_attr(docsrs, doc(include = "../../docs/licenses/cfg.md"))] -//! If a `[license]` configuration section, cargo-deny will use the default -//! configuration. -//! -//! ``` -//! use cargo_deny::{LintLevel, licenses::cfg::Config}; -//! -//! let dc = Config::default(); -//! -//! assert_eq!(dc.unlicensed, LintLevel::Deny); -//! assert_eq!( -//! dc.allow_osi_fsf_free, -//! cargo_deny::licenses::cfg::BlanketAgreement::Neither -//! ); -//! assert_eq!(dc.copyleft, LintLevel::Warn); -//! assert_eq!(dc.confidence_threshold, 0.8); -//! assert!(dc.deny.is_empty()); -//! assert!(dc.allow.is_empty()); -//! assert!(dc.clarify.is_empty()); -//! assert!(dc.exceptions.is_empty()); -//! ``` - use crate::{ cfg::{deprecated, PackageSpec, ValidationContext}, diag::{Diagnostic, FileId, Label},