Skip to content

Commit

Permalink
fix: move data in text
Browse files Browse the repository at this point in the history
  • Loading branch information
elcharitas committed Dec 7, 2024
1 parent 42f4e5f commit b95b2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/shared/src/server/transformer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ impl<'b> Body<'b> {
/// assert_eq!(body.text(), r#"{"name": "John", "age": 30}"#);
/// ```
pub fn text(self) -> String {
String::from_utf8_lossy(&self.data).to_string()
String::from_utf8_lossy(self.data).to_string()
}

/// Parses the data into a `multipart/form-data` stream.
Expand Down

0 comments on commit b95b2a1

Please sign in to comment.