From 066c35163981a0ca20f3b484cd8fad807b86effa Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Mon, 13 Jun 2022 11:15:56 +1000 Subject: [PATCH 1/2] update return signature for try_from_os_str --- examples/derive_ref/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/derive_ref/README.md b/examples/derive_ref/README.md index dd973ed3..eb796ee7 100644 --- a/examples/derive_ref/README.md +++ b/examples/derive_ref/README.md @@ -268,7 +268,7 @@ You can then support your custom type with `#[clap(parse( [= ])) | `from_str` | `fn(&str) -> T` | `::std::convert::From::from` | | `try_from_str` (default) | `fn(&str) -> Result` | `::std::str::FromStr::from_str` | | `from_os_str` | `fn(&OsStr) -> T` | `::std::convert::From::from` | -| `try_from_os_str` | `fn(&OsStr) -> Result` | (no default function) | +| `try_from_os_str` | `fn(&OsStr) -> Result` | (no default function) | | `from_occurrences` | `fn(u64) -> T` | `value as T` | | `from_flag` | `fn(bool) -> T` | `::std::convert::From::from` | From 52403cd8cce4be55a942abc013561a997c28e552 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Tue, 14 Jun 2022 09:16:52 +1000 Subject: [PATCH 2/2] Update README.md --- examples/derive_ref/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/derive_ref/README.md b/examples/derive_ref/README.md index eb796ee7..02fb4c15 100644 --- a/examples/derive_ref/README.md +++ b/examples/derive_ref/README.md @@ -268,7 +268,7 @@ You can then support your custom type with `#[clap(parse( [= ])) | `from_str` | `fn(&str) -> T` | `::std::convert::From::from` | | `try_from_str` (default) | `fn(&str) -> Result` | `::std::str::FromStr::from_str` | | `from_os_str` | `fn(&OsStr) -> T` | `::std::convert::From::from` | -| `try_from_os_str` | `fn(&OsStr) -> Result` | (no default function) | +| `try_from_os_str` | `fn(&OsStr) -> Result` | (no default function) | | `from_occurrences` | `fn(u64) -> T` | `value as T` | | `from_flag` | `fn(bool) -> T` | `::std::convert::From::from` |