From 2c11c23866bbd5ecebce4a08e69590354f90c132 Mon Sep 17 00:00:00 2001 From: Ralf Biedert Date: Mon, 8 Jan 2024 21:26:35 +0100 Subject: [PATCH] Turns out that trait was needed. --- openh264-sys2/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openh264-sys2/src/lib.rs b/openh264-sys2/src/lib.rs index 480014d..347cb98 100644 --- a/openh264-sys2/src/lib.rs +++ b/openh264-sys2/src/lib.rs @@ -173,6 +173,8 @@ impl DynamicAPI { /// not match against a list of well-known versions we can load. #[cfg(feature = "libloading")] pub fn from_blob_path(path: impl AsRef) -> Result { + use sha2::Digest; + let bytes = std::fs::read(path.as_ref())?; // Get SHA of blob at given path.