diff --git a/src/bin/serve.rs b/src/bin/serve.rs index 0962ae9da..cc4ab4796 100644 --- a/src/bin/serve.rs +++ b/src/bin/serve.rs @@ -4,7 +4,6 @@ use std::fs::File; use std::net::SocketAddr; use std::path::PathBuf; use std::str::FromStr; -use std::sync::Arc; use std::time::Instant; use askama_warp::Template; @@ -58,21 +57,6 @@ fn highlight_string(string: &str, words: &HashSet) -> String { output } -// TODO find a better way or move this elsewhere -struct TransitiveArc(Arc); - -impl> AsRef<[u8]> for TransitiveArc { - fn as_ref(&self) -> &[u8] { - self.0.as_ref().as_ref() - } -} - -impl Clone for TransitiveArc { - fn clone(&self) -> TransitiveArc { - TransitiveArc(self.0.clone()) - } -} - #[derive(Template)] #[template(path = "index.html")] struct IndexTemplate {