chore: fix clippy lints (#707)
This commit is contained in:
@@ -235,7 +235,7 @@ impl Encoding {
|
||||
Self::from_header(headers.get(header::ACCEPT))
|
||||
}
|
||||
|
||||
pub(crate) fn to_content_type(&self) -> &'static str {
|
||||
pub(crate) fn to_content_type(self) -> &'static str {
|
||||
match self {
|
||||
Encoding::Base64 => GRPC_WEB_TEXT_PROTO,
|
||||
Encoding::None => GRPC_WEB_PROTO,
|
||||
|
||||
@@ -161,7 +161,7 @@ mod tests {
|
||||
($header:expr, $expected:expr) => {
|
||||
fn sorted(value: &str) -> Vec<&str> {
|
||||
let mut vec = value.split(",").collect::<Vec<_>>();
|
||||
vec.sort();
|
||||
vec.sort_unstable();
|
||||
vec
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user