diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-20 08:51:43 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-20 08:51:43 +0800 |
| commit | ff1e3262641529468841c531795df0fed8b08350 (patch) | |
| tree | 540d64a0ee9d9443999322b125dfade0b716b480 /arg_picker/src/builtin/pick_pathbuf.rs | |
| parent | 4a4591affcdb9fef4025e1493546ea77132ce7d2 (diff) | |
Diffstat (limited to 'arg_picker/src/builtin/pick_pathbuf.rs')
| -rw-r--r-- | arg_picker/src/builtin/pick_pathbuf.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/arg_picker/src/builtin/pick_pathbuf.rs b/arg_picker/src/builtin/pick_pathbuf.rs deleted file mode 100644 index ec2cae1..0000000 --- a/arg_picker/src/builtin/pick_pathbuf.rs +++ /dev/null @@ -1,15 +0,0 @@ -// Doc Not Optimize -use std::path::PathBuf; - -use crate::{ - PickerArgResult::{NotFound, Parsed}, - SinglePickable, -}; - -impl SinglePickable for PathBuf { - fn pick_single(str: Option<&str>) -> crate::PickerArgResult<Self> { - str.map_or(NotFound, |str| { - just_fmt::fmt_path_str(str).map_or(NotFound, |formated| Parsed(Self::from(formated))) - }) - } -} |
