devimg-core 0.2.8

Core image pipeline logic for devimg
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::PathBuf;

use super::DevimgError;

#[test]
fn devimg_error_io_accepts_owned_paths() {
    let error = DevimgError::io(
        PathBuf::from("public/card.webp"),
        std::io::Error::other("disk full"),
    );

    assert!(error.to_string().contains("public/card.webp"));
    assert!(error.to_string().contains("disk full"));
}