Skip to content

Commit

Permalink
fix: remove debug println in borrow_deserialize
Browse files Browse the repository at this point in the history
  • Loading branch information
polazarus committed Aug 11, 2023
1 parent cb5f298 commit b6e1871
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/string/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@ impl<'de> de::Visitor<'de> for CowVisitor {
where
E: de::Error,
{
println!("borrowed");
Ok(Cow::Borrowed(v))
}

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>
where
E: de::Error,
{
println!("owned");
Ok(Cow::Owned(v.to_string()))
}

Expand Down

0 comments on commit b6e1871

Please sign in to comment.