fcla/path.rs
1use crate::internal::*;
2
3impl FromArg for std::path::PathBuf {
4 type Parent = std::ffi::OsString;
5 type Error = Infallible;
6
7 fn from_arg(arg: Self::Parent) -> Result<Self, Self::Error> {
8 Ok(arg.into())
9 }
10
11 fn box_error(error: Self::Error) -> Box<dyn Error + Send + Sync> {
12 match error {}
13 }
14}