Skip to content

Commit a735bee

Browse files
committed
Fix more Clippy lints
1 parent 7eed4a1 commit a735bee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎pydantic-core/src/lookup_key.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub(crate) struct LookupPath {
5858

5959
impl fmt::Display for LookupPath {
6060
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
61-
write!(f, "{first_key}", first_key = &self.first_item)?;
61+
write!(f, "{first_key}", first_key = self.first_item)?;
6262
for item in &self.rest {
6363
write!(f, ".{item}")?;
6464
}
@@ -236,7 +236,7 @@ impl Borrow<str> for PathItemString {
236236

237237
impl fmt::Display for PathItemString {
238238
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
239-
write!(f, "'{key}'", key = &self.0)
239+
write!(f, "'{key}'", key = self.0)
240240
}
241241
}
242242

0 commit comments

Comments
 (0)