Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 22867bd

Browse files
style(client): Fix some clippy lints (#199)
1 parent 2ff0ba6 commit 22867bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/client/legacy/connect/http.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,14 +489,14 @@ fn get_host_port<'u>(config: &Config, dst: &'u Uri) -> Result<(&'u str, u16), Co
489489
if config.enforce_http {
490490
if dst.scheme() != Some(&Scheme::HTTP) {
491491
return Err(ConnectError {
492-
msg: INVALID_NOT_HTTP.into(),
492+
msg: INVALID_NOT_HTTP,
493493
addr: None,
494494
cause: None,
495495
});
496496
}
497497
} else if dst.scheme().is_none() {
498498
return Err(ConnectError {
499-
msg: INVALID_MISSING_SCHEME.into(),
499+
msg: INVALID_MISSING_SCHEME,
500500
addr: None,
501501
cause: None,
502502
});
@@ -506,7 +506,7 @@ fn get_host_port<'u>(config: &Config, dst: &'u Uri) -> Result<(&'u str, u16), Co
506506
Some(s) => s,
507507
None => {
508508
return Err(ConnectError {
509-
msg: INVALID_MISSING_HOST.into(),
509+
msg: INVALID_MISSING_HOST,
510510
addr: None,
511511
cause: None,
512512
})
@@ -693,7 +693,7 @@ impl fmt::Debug for ConnectError {
693693

694694
impl fmt::Display for ConnectError {
695695
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
696-
f.write_str(&self.msg)
696+
f.write_str(self.msg)
697697
}
698698
}
699699

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /