You've already forked lint-policy
Move extern crates to the root
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
//! Diffing lint.
|
//! Diffing lint.
|
||||||
|
|
||||||
use core::cmp::Ordering;
|
|
||||||
|
|
||||||
extern crate alloc;
|
|
||||||
use alloc::collections::BTreeSet;
|
use alloc::collections::BTreeSet;
|
||||||
|
use core::cmp::Ordering;
|
||||||
|
|
||||||
use lint_policy::cargo::{LintSetting, LintTable};
|
use lint_policy::cargo::{LintSetting, LintTable};
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
//! Lint groups.
|
//! Lint groups.
|
||||||
|
|
||||||
extern crate alloc;
|
|
||||||
use alloc::collections::BTreeMap;
|
use alloc::collections::BTreeMap;
|
||||||
|
|
||||||
use lint_policy::Linter;
|
use lint_policy::Linter;
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
|
extern crate alloc;
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use clap::Parser as _;
|
use clap::Parser as _;
|
||||||
use lint_policy::Linter;
|
use lint_policy::Linter;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
//! Types for serializing and deserializing a workspace TOML file with a lint table.
|
//! Types for serializing and deserializing a workspace TOML file with a lint table.
|
||||||
|
|
||||||
extern crate alloc;
|
|
||||||
use alloc::collections::BTreeMap;
|
use alloc::collections::BTreeMap;
|
||||||
use alloc::string::String;
|
use alloc::string::String;
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
#![no_std]
|
#![no_std]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
|
#[cfg(feature = "alloc")]
|
||||||
|
extern crate alloc;
|
||||||
|
|
||||||
mod level;
|
mod level;
|
||||||
mod linter;
|
mod linter;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user