caio.co/de/caca

Tiny lint fixes

Id
98ff834dc63c4fcdf897932afc750e46a7750fb2
Author
Caio
Commit time
2024-06-06T09:09:45+02:00

Modified caca/src/config.rs

@@ -145,7 +145,7

pub fn repo_clone_url(&self, name: &str) -> String {
if let Some(ref url) = self.site.clone_base_url {
- format!("{url}/{name}",)
+ format!("{url}/{name}")
} else {
format!(
"{}{}/{name}",

Modified urso/src/lib.rs

@@ -1111,16 +1111,6
pub use gix::config::parse::Error;
use gix::config::parse::{from_bytes, Event};

- trait EntryVisitor {
- fn visit(
- &mut self,
- section: &str,
- subsection: Option<&str>,
- key: &str,
- value: &[u8],
- ) -> bool;
- }
-
pub fn parse<V>(data: &[u8], mut visitor: V) -> Result<(), Error>
where
// F(section, subsection, key, value) -> continue_parsing