index : static-web-server.git

ascending towards madness

author Yonas Yanfa <yonas.y@gmail.com> 2024-02-26 17:35:12.0 +00:00:00
committer GitHub <noreply@github.com> 2024-02-26 17:35:12.0 +00:00:00
commit
b6444f471fa432ea6fd3039e04a9fdc2b2c6dac6 [patch]
tree
7aa8807e171c802d429c35661dc70086e6a6870a
parent
2286e452a01c39a8ea40232f2cba17d930c8a821
download
b6444f471fa432ea6fd3039e04a9fdc2b2c6dac6.tar.gz

fix: error: the item TryFrom is imported redundantly #317 (#318)

This should fix #317 for Rust nightly.

Diff

 src/cors.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cors.rs b/src/cors.rs
index d618532..4a1233b 100644
--- a/src/cors.rs
+++ b/src/cors.rs
@@ -13,7 +13,7 @@ use headers::{
    HeaderMapExt, HeaderName, HeaderValue, Origin,
};
use http::header;
use std::{collections::HashSet, convert::TryFrom};
use std::collections::HashSet;

/// It defines CORS instance.
#[derive(Clone, Debug)]