mdcat: fix compilation

Changed files
+18
pkgs
tools
+4
pkgs/tools/text/mdcat/default.nix
···
hash = "sha256-j6BFXx5cyjE3+fo1gGKlqpsxrm3i9HfQ9tJGNNjjLwo=";
};
+
patches = [
+
./fix-clippy.diff
+
];
+
nativeBuildInputs = [
pkg-config
asciidoctor
+14
pkgs/tools/text/mdcat/fix-clippy.diff
···
+
diff --git a/pulldown-cmark-mdcat/src/terminal/osc.rs b/pulldown-cmark-mdcat/src/terminal/osc.rs
+
index 8fa2db6..dc2a2da 100644
+
--- a/pulldown-cmark-mdcat/src/terminal/osc.rs
+
+++ b/pulldown-cmark-mdcat/src/terminal/osc.rs
+
@@ -20,9 +20,6 @@ pub fn write_osc<W: Write + ?Sized>(writer: &mut W, command: &str) -> Result<()>
+
Ok(())
+
}
+
+
-#[derive(Debug, PartialEq, Eq, Copy, Clone)]
+
-pub struct Osc8Links;
+
-
+
/// Whether the given `url` needs to get an explicit host.
+
///
+
/// [OSC 8] links require that `file://` URLs give an explicit hostname, as