Skip to content

Commit

Permalink
Minor change to support rust version >= 1.40.0
Browse files Browse the repository at this point in the history
  • Loading branch information
madadam committed Nov 11, 2021
1 parent 3721c5e commit 4faf05f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ impl<'a> ser::Serializer for &'a mut Serializer {
///
/// let bytes = serde_bencode::to_bytes(&address)?;
/// assert_eq!(
/// String::from_utf8(bytes),
/// Ok("d4:city18:Duckburg, Calisota6:street17:1313 Webfoot Walke".to_string()),
/// String::from_utf8(bytes).unwrap(),
/// "d4:city18:Duckburg, Calisota6:street17:1313 Webfoot Walke",
/// );
/// # Ok(())
/// # }
Expand Down

0 comments on commit 4faf05f

Please sign in to comment.