Skip to content

Commit

Permalink
remove format string
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtoth committed Oct 26, 2023
1 parent 59600f2 commit 7d259d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/status_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl<'de> de::Visitor<'de> for Visitor {
type Value = Type;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
write!(formatter, "{EXPECT_MESSAGE}")
formatter.write_str(EXPECT_MESSAGE)
}

fn visit_i32<E: de::Error>(self, val: i32) -> Result<Self::Value, E> {
Expand Down

0 comments on commit 7d259d8

Please sign in to comment.