Forbid unsafe code and add documentation warnings.

This commit is contained in:
Bauke 2022-10-02 16:12:12 +02:00
parent 521a9bbd1a
commit 2ebc218149
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@
//! To create an OPML document from scratch, use [`OPML::default()`] or the good //! To create an OPML document from scratch, use [`OPML::default()`] or the good
//! old `OPML { /* ... */ }` syntax. //! old `OPML { /* ... */ }` syntax.
#![forbid(unsafe_code)]
#![warn(missing_docs, clippy::missing_docs_in_private_items)]
use hard_xml::{XmlRead, XmlWrite}; use hard_xml::{XmlRead, XmlWrite};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use thiserror::Error; use thiserror::Error;