Skip to content

Commit abacf3e

Browse files
committed
remove Display docs for Argument
1 parent 0db1b76 commit abacf3e

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/lib.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -174,34 +174,6 @@ impl<'a> Argument<'a> {
174174
}
175175

176176
impl Display for Argument<'_> {
177-
/// Outputs a representation of the argument that approximates the original string.
178-
///
179-
/// This function manually attempts to recreate the original string that was parsed into this
180-
/// argument. It doesn't necessarily have to reflect the original, which is the case with
181-
/// values like `--option=value` - the `=` will be lost.
182-
///
183-
/// # Examples
184-
///
185-
/// ```rust
186-
/// use std::borrow::Cow;
187-
/// use sap::Argument;
188-
///
189-
/// // Long option
190-
/// let arg = Argument::Long("foo");
191-
/// assert_eq!(arg.to_string(), "--foo");
192-
///
193-
/// // Short option
194-
/// let arg = Argument::Short('o');
195-
/// assert_eq!(arg.to_string(), "-o");
196-
///
197-
/// // Value argument
198-
/// let arg = Argument::Value(Cow::Borrowed("bar"));
199-
/// assert_eq!(arg.to_string(), "bar");
200-
///
201-
/// // Stdio argument
202-
/// let arg = Argument::Stdio;
203-
/// assert_eq!(arg.to_string(), "-");
204-
/// ```
205177
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
206178
use Argument::{Long, Short, Stdio, Value};
207179

0 commit comments

Comments
 (0)