yazi-shared 26.5.6

Yazi shared library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

// --- StrandError
#[derive(Debug, Error)]
pub enum StrandError {
	#[error("conversion to OS string failed")]
	AsOs,
	#[error("conversion to UTF-8 string failed")]
	AsUtf8,
}

impl From<StrandError> for std::io::Error {
	fn from(err: StrandError) -> Self { Self::other(err) }
}