Skip to content

Commit 4b73f6a

Browse files
tottotoseanmonstar
authored andcommitted
refactor(lib): use to_owned to clarify the purpose
1 parent 77af842 commit 4b73f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/status.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ impl FromStr for StatusCode {
267267
impl<'a> From<&'a StatusCode> for StatusCode {
268268
#[inline]
269269
fn from(t: &'a StatusCode) -> Self {
270-
t.clone()
270+
t.to_owned()
271271
}
272272
}
273273

0 commit comments

Comments
 (0)