refactor: Move #![forbid(unsafe_code)] attributes up

What's forbidden is more important than which clippy lints are
ignored and more important directives should come first.
This commit is contained in:
Martin Fischer
2023-01-25 06:13:22 +01:00
committed by Charlie Marsh
parent 63b4f60ba4
commit 2125d0bb54
6 changed files with 6 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
//! and subject to change drastically.
//!
//! [Ruff]: https://github.com/charliermarsh/ruff
#![forbid(unsafe_code)]
#![allow(
clippy::collapsible_else_if,
clippy::collapsible_if,
@@ -16,7 +17,6 @@
clippy::similar_names,
clippy::too_many_lines
)]
#![forbid(unsafe_code)]
mod ast;
mod autofix;