From 90ac6e07c905950451962e8ae1d8982352438121 Mon Sep 17 00:00:00 2001 From: KitsuneCafe <10284516+kitsunecafe@users.noreply.github.com> Date: Sun, 11 Feb 2024 00:29:14 -0500 Subject: [PATCH] remove unnecessary library --- Cargo.lock | 7 ------- Cargo.toml | 1 - src/context.rs | 4 ++-- src/main.rs | 4 +--- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 940847d..d4b90ef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -317,12 +317,6 @@ dependencies = [ "crypto-common", ] -[[package]] -name = "either" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" - [[package]] name = "equivalent" version = "1.0.1" @@ -826,7 +820,6 @@ name = "roxy_cli" version = "0.1.0" dependencies = [ "clap", - "either", "glob", "roxy_core", "roxy_markdown_parser", diff --git a/Cargo.toml b/Cargo.toml index 446eb08..63c03fe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,5 +15,4 @@ clap = { version = "4.4.17", features = ["derive"] } toml = "0.8.8" tera = "1.19.1" serde = "1.0.195" -either = "1.10.0" diff --git a/src/context.rs b/src/context.rs index 8d375b6..5b3dbb3 100644 --- a/src/context.rs +++ b/src/context.rs @@ -90,7 +90,7 @@ impl V, V: Clone> Iterator for MapFold(mut self, init: B, f: F) -> MapFold + fn map_fold(self, init: B, f: F) -> MapFold where Self: Sized, F: FnMut(&B, &Self::Item) -> B, @@ -159,7 +159,7 @@ impl Context { } } - pub fn get>(&self, path: &P) -> Option<&Value> { + pub fn get>(&self, _path: &P) -> Option<&Value> { None } } diff --git a/src/main.rs b/src/main.rs index 86a1291..cb70c56 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,6 +19,7 @@ use std::{ io::{BufReader, Read}, path::{Path, PathBuf}, }; + use syntect::{highlighting::ThemeSet, parsing::SyntaxSet}; use toml::Table; @@ -72,7 +73,6 @@ fn context_from_meta_files<'a, T: AsRef>( let mut context = Context::new(); for path in files { - //println!("{path:?}"); let mut buf = Vec::new(); let mut file = File::open(path).map(BufReader::new)?; @@ -155,8 +155,6 @@ fn main() -> Result<(), Box> { } } - //println!("{context:?}"); - let mut tera = tera::Tera::default(); let mut html = TeraParser::new(&mut tera, TeraParserOptions::default()); html.add_context(context.to_inner());