diff --git a/Cargo.toml b/Cargo.toml index 50cc1c9..07fc97a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,13 @@ edition = "2021" name = "select-html" path = "source/main.rs" +[lints.clippy] +missing_docs_in_private_items = "warn" + +[lints.rust] +missing_docs = "warn" +unsafe_code = "forbid" + [dependencies] color-eyre = "0.6.2" scraper = "0.13.0" diff --git a/source/main.rs b/source/main.rs index 55b1ac0..3bbbc65 100644 --- a/source/main.rs +++ b/source/main.rs @@ -1,25 +1,7 @@ -// Copyright (C) 2022 Bauke -// -// This program is free software: you can redistribute it and/or modify it under -// the terms of the GNU Affero General Public License as published by the Free -// Software Foundation, either version 3 of the License, or (at your option) any -// later version. -// -// This program is distributed in the hope that it will be useful, but WITHOUT -// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -// FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more -// details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see . - //! # Select HTML //! //! > **Extract HTML using CSS selectors in the command-line.** -#![forbid(unsafe_code)] -#![warn(missing_docs, clippy::missing_docs_in_private_items)] - use std::{ fs::File, io::{stdin, Read},