Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/engine/src/doc_path/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ impl Services for Recording {
}

/// Probes every file as a still.
#[cfg(unix)]
struct Stills;

#[cfg(unix)]
impl crate::Importer for Stills {
/// Treat an existing test file as a still image without decoding its bytes.
fn probe(&self, path: &str) -> Result<Footage, String> {
if !std::path::Path::new(path).is_file() {
return Err(format!("{path}: no such file"));
Expand Down