Update src/error.rs

Co-authored-by: Jacob Hoffman-Andrews <github@hoffman-andrews.com>
This commit is contained in:
Martin Algesten
2021-12-19 20:48:03 +01:00
parent f3857eed00
commit 324c5c074f

View File

@@ -139,7 +139,7 @@ impl Transport {
/// // classification /// // classification
/// assert_eq!(error.kind(), ErrorKind::InvalidUrl); /// assert_eq!(error.kind(), ErrorKind::InvalidUrl);
/// assert_eq!(error.kind().to_string(), "Bad URL"); /// assert_eq!(error.kind().to_string(), "Bad URL");
///
/// // higher level message /// // higher level message
/// assert_eq!(error.message(), Some("failed to parse URL: RelativeUrlWithoutBase")); /// assert_eq!(error.message(), Some("failed to parse URL: RelativeUrlWithoutBase"));
/// ///