index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2022-02-03 12:12:17.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2022-02-03 12:12:17.0 +00:00:00
commit
f65d4457458cb5080b35baa04194e914b3b3c1b1 [patch]
tree
a992f32b1684a592363be7cf81f50d40aba0cdbc
parent
09f5a88662830cf9d4e39894df01229f020eace7
download
f65d4457458cb5080b35baa04194e914b3b3c1b1.tar.gz

chore: enforce linting

- #![deny(dead_code)]
- #![forbid(unsafe_code)]

Diff

 src/bin/server.rs     | 2 ++
 src/lib.rs            | 2 ++
 tests/cors.rs         | 2 ++
 tests/dir_listing.rs  | 2 ++
 tests/static_files.rs | 2 ++
 5 files changed, 10 insertions(+)

diff --git a/src/bin/server.rs b/src/bin/server.rs
index 90eb6a2..a78e4d2 100644
--- a/src/bin/server.rs
+++ b/src/bin/server.rs
@@ -1,5 +1,7 @@
#![forbid(unsafe_code)]
#![deny(warnings)]
#![deny(rust_2018_idioms)]
#![deny(dead_code)]

#[cfg(all(target_env = "musl", target_pointer_width = "64"))]
#[global_allocator]
diff --git a/src/lib.rs b/src/lib.rs
index 2f28353..3969b8d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,7 @@
#![forbid(unsafe_code)]
#![deny(warnings)]
#![deny(rust_2018_idioms)]
#![deny(dead_code)]

#[macro_use]
extern crate anyhow;
diff --git a/tests/cors.rs b/tests/cors.rs
index 601d2d8..0917a03 100644
--- a/tests/cors.rs
+++ b/tests/cors.rs
@@ -1,5 +1,7 @@
#![forbid(unsafe_code)]
#![deny(warnings)]
#![deny(rust_2018_idioms)]
#![deny(dead_code)]

#[cfg(test)]
mod tests {
diff --git a/tests/dir_listing.rs b/tests/dir_listing.rs
index d363aae..8000918 100644
--- a/tests/dir_listing.rs
+++ b/tests/dir_listing.rs
@@ -1,5 +1,7 @@
#![forbid(unsafe_code)]
#![deny(warnings)]
#![deny(rust_2018_idioms)]
#![deny(dead_code)]

#[cfg(test)]
mod tests {
diff --git a/tests/static_files.rs b/tests/static_files.rs
index 9bc8735..5b1485a 100644
--- a/tests/static_files.rs
+++ b/tests/static_files.rs
@@ -1,5 +1,7 @@
#![forbid(unsafe_code)]
#![deny(warnings)]
#![deny(rust_2018_idioms)]
#![deny(dead_code)]

#[cfg(test)]
mod tests {