blob: c96f667fa581af631ed8724097dfae75745593e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
use crate::PickerArgResult::NotFound;
use crate::{SinglePickable, pickable_needed::*};
impl SinglePickable for String {
fn pick_single(str: Option<&str>) -> PickerArgResult<Self> {
match str {
Some(str) => PickerArgResult::Parsed(str.to_string()),
None => NotFound,
}
}
}
|