1
Fork 0

Move global lints to Cargo.toml.

This commit is contained in:
Bauke 2023-12-09 15:12:54 +01:00
parent b44b540020
commit 1030c6f60f
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 3 additions and 2 deletions

View File

@ -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"

View File

@ -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};