mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00
Fix clippy warnings
This commit is contained in:
parent
f5274f5ada
commit
7c3d89112d
11 changed files with 49 additions and 47 deletions
|
@ -82,7 +82,7 @@ impl MercuryManager {
|
|||
|
||||
pub fn get<T: Into<String>>(&self, uri: T) -> MercuryFuture<MercuryResponse> {
|
||||
self.request(MercuryRequest {
|
||||
method: MercuryMethod::GET,
|
||||
method: MercuryMethod::Get,
|
||||
uri: uri.into(),
|
||||
content_type: None,
|
||||
payload: Vec::new(),
|
||||
|
@ -91,7 +91,7 @@ impl MercuryManager {
|
|||
|
||||
pub fn send<T: Into<String>>(&self, uri: T, data: Vec<u8>) -> MercuryFuture<MercuryResponse> {
|
||||
self.request(MercuryRequest {
|
||||
method: MercuryMethod::SEND,
|
||||
method: MercuryMethod::Send,
|
||||
uri: uri.into(),
|
||||
content_type: None,
|
||||
payload: vec![data],
|
||||
|
@ -109,7 +109,7 @@ impl MercuryManager {
|
|||
{
|
||||
let uri = uri.into();
|
||||
let request = self.request(MercuryRequest {
|
||||
method: MercuryMethod::SUB,
|
||||
method: MercuryMethod::Sub,
|
||||
uri: uri.clone(),
|
||||
content_type: None,
|
||||
payload: Vec::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue