From 2ebc21814905e61a6cc386db7b84da7dea556994 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 2 Oct 2022 16:12:12 +0200 Subject: [PATCH] Forbid unsafe code and add documentation warnings. --- opml_api/source/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opml_api/source/lib.rs b/opml_api/source/lib.rs index b53aaf2..f9fd5f3 100644 --- a/opml_api/source/lib.rs +++ b/opml_api/source/lib.rs @@ -29,6 +29,9 @@ //! To create an OPML document from scratch, use [`OPML::default()`] or the good //! old `OPML { /* ... */ }` syntax. +#![forbid(unsafe_code)] +#![warn(missing_docs, clippy::missing_docs_in_private_items)] + use hard_xml::{XmlRead, XmlWrite}; use serde::{Deserialize, Serialize}; use thiserror::Error;