Skip to content

Commit 40be16c

Browse files
committed
remove clone
1 parent f0af6ed commit 40be16c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validators/union.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ impl BuildValidator for TaggedUnionValidator {
270270
if first {
271271
first = false;
272272
write!(tags_repr, "{tag_repr}").unwrap();
273-
descr.push_str(validator.get_name().clone());
273+
descr.push_str(validator.get_name());
274274
} else {
275275
write!(tags_repr, ", {tag_repr}").unwrap();
276276
// no spaces in get_name() output to make loc easy to read
@@ -346,7 +346,7 @@ impl Validator for TaggedUnionValidator {
346346
}
347347
Discriminator::SelfSchema => self.find_call_validator(
348348
py,
349-
&self.self_schema_tag(py, input)?.as_ref(),
349+
self.self_schema_tag(py, input)?.as_ref(),
350350
input,
351351
extra,
352352
definitions,

0 commit comments

Comments
 (0)