mdcat: fix compilation

This commit is contained in:
Sandro Jäckel
2025-08-26 18:51:50 +02:00
parent 42fc5b9d6e
commit e02dbaf605
2 changed files with 18 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-j6BFXx5cyjE3+fo1gGKlqpsxrm3i9HfQ9tJGNNjjLwo=";
};
patches = [
./fix-clippy.diff
];
nativeBuildInputs = [
pkg-config
asciidoctor

View File

@@ -0,0 +1,14 @@
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