Deny unwrap/expect/panic via workspace lints; fix pedantic warnings
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
//! optional range handling (configurable), `Connection: close` semantics.
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
// Tests are allowed to unwrap/expect; production code denies them via
|
||||
// workspace lints (server/Cargo.toml).
|
||||
#![allow(clippy::unwrap_used, clippy::expect_used)]
|
||||
|
||||
use std::io::{BufRead, BufReader, Write};
|
||||
use std::net::{SocketAddr, TcpListener, TcpStream};
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
//! the fallback path for range-hostile servers.
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
// Tests are allowed to unwrap/expect; production code denies them via
|
||||
// workspace lints (server/Cargo.toml).
|
||||
#![allow(clippy::unwrap_used, clippy::expect_used)]
|
||||
|
||||
mod common;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user