Skip to content

Commit

Permalink
Remove pointless doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Feb 22, 2024
1 parent 02790ab commit b559d04
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/licenses/cfg.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down

0 comments on commit b559d04

Please sign in to comment.