Skip to content

Commit

Permalink
Turns out that trait was needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfbiedert committed Jan 8, 2024
1 parent e2a999b commit 2c11c23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openh264-sys2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::ffi::OsStr>) -> Result<Self, Error> {
use sha2::Digest;

let bytes = std::fs::read(path.as_ref())?;

// Get SHA of blob at given path.
Expand Down

0 comments on commit 2c11c23

Please sign in to comment.