1
Fork 0

Move global lints to Cargo.toml.

This commit is contained in:
Bauke 2024-01-25 18:48:26 +01:00
parent 357c2bbfbf
commit 29dd410b3b
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 7 additions and 18 deletions

View File

@ -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"

View File

@ -1,25 +1,7 @@
// Copyright (C) 2022 Bauke <me@bauke.xyz>
//
// 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 <https://www.gnu.org/licenses/>.
//! # 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},