kaffee 0.2.0

Small 2D framework
Documentation
1
2
3
4
5
6
7
8
9
10
use std::{fs, path::Path};

use crate::error::ErrorKind;

pub(crate) fn load_file<P>(path: P) -> Result<Vec<u8>, ErrorKind>
where
    P: AsRef<Path>,
{
    Ok(fs::read(path)?)
}