Fix clippy warnings
Fix linter warning from clippy about unnecessary borrows - "This expression borrows a reference ... that is immediately dereferenced by the compiler"
This commit is contained in:
committed by
Martin Algesten
parent
eb04d96af8
commit
4665b0aa5a
@@ -85,7 +85,7 @@ impl TestHeaders {
|
||||
if self.0.is_empty() {
|
||||
""
|
||||
} else {
|
||||
&self.0[0].split(' ').nth(1).unwrap()
|
||||
self.0[0].split(' ').nth(1).unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user