mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
Forbid unsafe code (#1704)
We can reverse this later if it really becomes necessary, but I expect safe Rust to be sufficient for all our needs. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
clippy::similar_names,
|
||||
clippy::too_many_lines
|
||||
)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
pub mod generate_all;
|
||||
pub mod generate_cli_help;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
clippy::similar_names,
|
||||
clippy::too_many_lines
|
||||
)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
use anyhow::Result;
|
||||
use clap::{Parser, Subcommand};
|
||||
|
||||
Reference in New Issue
Block a user