Move global lints to Cargo.toml.
This commit is contained in:
parent
b44b540020
commit
1030c6f60f
|
@ -26,3 +26,6 @@ pathfinding = "4.4.0"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
regex = "1.10.2"
|
regex = "1.10.2"
|
||||||
ureq = { version = "2.8.0", features = ["cookie", "cookie_store"] }
|
ureq = { version = "2.8.0", features = ["cookie", "cookie_store"] }
|
||||||
|
|
||||||
|
[lints.rust]
|
||||||
|
unsafe_code = "forbid"
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
//!
|
//!
|
||||||
//! > **Advent of Code solutions in Rust.**
|
//! > **Advent of Code solutions in Rust.**
|
||||||
|
|
||||||
#![forbid(unsafe_code)]
|
|
||||||
|
|
||||||
use std::{fs::read_to_string, path::PathBuf};
|
use std::{fs::read_to_string, path::PathBuf};
|
||||||
|
|
||||||
use {askama::Template, clap::Parser, color_eyre::Result};
|
use {askama::Template, clap::Parser, color_eyre::Result};
|
||||||
|
|
Loading…
Reference in New Issue