chore: add #[forbid(unsafe_code)] to all crates (#131)

This commit is contained in:
kos-for-juspay
2022-12-13 12:23:19 +01:00
committed by GitHub
parent 695cba3dd8
commit 97ccfd33b7
6 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#![forbid(unsafe_code)]
pub mod admin;
pub mod bank_accounts;
pub mod cards;

View File

@ -1,3 +1,4 @@
#![forbid(unsafe_code)]
#![warn(
missing_docs,
rust_2018_idioms,

View File

@ -1,3 +1,4 @@
#![forbid(unsafe_code)]
// TODO: Add crate & modules documentation for this crate
pub mod commands;

View File

@ -1,3 +1,4 @@
#![forbid(unsafe_code)]
// FIXME: I strongly advise to add this worning.
// #![warn(missing_docs)]

View File

@ -1,5 +1,5 @@
//! Utility macros for the `router` crate.
#![forbid(unsafe_code)]
#![warn(missing_docs)]
mod macros;

View File

@ -1,3 +1,4 @@
#![forbid(unsafe_code)]
#![warn(
missing_docs,
rust_2018_idioms,