mirror of
https://github.com/dathere/ckanaction.git
synced 2025-11-09 06:19:49 +00:00
🎁 Rust library crate featuring an API wrapper of the CKAN Action v3 API.
https://ckanaction.dathere.com
warning: this `else` branch is empty
--> src/lib.rs:24:7
|
24 | } else {
| _______^
25 | | };
| |_____^ help: you can remove it
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_else
= note: `#[warn(clippy::needless_else)]` on by default
warning: unneeded unit expression
--> src/lib.rs:23:9
|
23 | ()
| ^^ help: remove the final `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
= note: `#[warn(clippy::unused_unit)]` on by default
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:822:9
|
822 | Ok(Self::get(&self, endpoint).await?)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
= note: `#[warn(clippy::needless_question_mark)]` on by default
help: remove the enclosing `Ok` and `?` operator
|
822 - Ok(Self::get(&self, endpoint).await?)
822 + Self::get(&self, endpoint).await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:822:22
|
822 | Ok(Self::get(&self, endpoint).await?)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:828:9
|
828 | Ok(Self::get(&self, endpoint).await?)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
828 - Ok(Self::get(&self, endpoint).await?)
828 + Self::get(&self, endpoint).await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:828:22
|
828 | Ok(Self::get(&self, endpoint).await?)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1246:9
|
1246 | Ok(Self::get(&self, endpoint).await?)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1246 - Ok(Self::get(&self, endpoint).await?)
1246 + Self::get(&self, endpoint).await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1246:22
|
1246 | Ok(Self::get(&self, endpoint).await?)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:98:9
|
98 | / Ok(Self::post(&self)
99 | | .endpoint(endpoint)
100 | | .body(body)
101 | | .call()
102 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
98 ~ Self::post(&self)
99 | .endpoint(endpoint)
100 | .body(body)
101 | .call()
102 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:98:23
|
98 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:119:9
|
119 | / Ok(Self::post(&self)
120 | | .endpoint(endpoint)
121 | | .body(body)
122 | | .call()
123 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
119 ~ Self::post(&self)
120 | .endpoint(endpoint)
121 | .body(body)
122 | .call()
123 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:119:23
|
119 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:140:9
|
140 | / Ok(Self::post(&self)
141 | | .endpoint(endpoint)
142 | | .body(body)
143 | | .call()
144 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
140 ~ Self::post(&self)
141 | .endpoint(endpoint)
142 | .body(body)
143 | .call()
144 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:140:23
|
140 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:159:9
|
159 | / Ok(Self::post(&self)
160 | | .endpoint(endpoint)
161 | | .body(body)
162 | | .call()
163 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
159 ~ Self::post(&self)
160 | .endpoint(endpoint)
161 | .body(body)
162 | .call()
163 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:159:23
|
159 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:178:9
|
178 | / Ok(Self::post(&self)
179 | | .endpoint(endpoint)
180 | | .body(body)
181 | | .call()
182 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
178 ~ Self::post(&self)
179 | .endpoint(endpoint)
180 | .body(body)
181 | .call()
182 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:178:23
|
178 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:217:9
|
217 | / Ok(Self::post(&self)
218 | | .endpoint(endpoint)
219 | | .body(body)
220 | | .call()
221 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
217 ~ Self::post(&self)
218 | .endpoint(endpoint)
219 | .body(body)
220 | .call()
221 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:217:23
|
217 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:256:9
|
256 | / Ok(Self::post(&self)
257 | | .endpoint(endpoint)
258 | | .body(body)
259 | | .call()
260 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
256 ~ Self::post(&self)
257 | .endpoint(endpoint)
258 | .body(body)
259 | .call()
260 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:256:23
|
256 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:275:9
|
275 | / Ok(Self::post(&self)
276 | | .endpoint(endpoint)
277 | | .body(body)
278 | | .call()
279 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
275 ~ Self::post(&self)
276 | .endpoint(endpoint)
277 | .body(body)
278 | .call()
279 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:275:23
|
275 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:296:9
|
296 | / Ok(Self::post(&self)
297 | | .endpoint(endpoint)
298 | | .body(body)
299 | | .call()
300 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
296 ~ Self::post(&self)
297 | .endpoint(endpoint)
298 | .body(body)
299 | .call()
300 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:296:23
|
296 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:307:9
|
307 | Ok(Self::post(&self).endpoint(endpoint).call().await?)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
307 - Ok(Self::post(&self).endpoint(endpoint).call().await?)
307 + Self::post(&self).endpoint(endpoint).call().await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:307:23
|
307 | Ok(Self::post(&self).endpoint(endpoint).call().await?)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:324:9
|
324 | / Ok(Self::post(&self)
325 | | .endpoint(endpoint)
326 | | .body(body)
327 | | .call()
328 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
324 ~ Self::post(&self)
325 | .endpoint(endpoint)
326 | .body(body)
327 | .call()
328 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:324:23
|
324 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:349:9
|
349 | / Ok(Self::post(&self)
350 | | .endpoint(endpoint)
351 | | .body(body)
352 | | .call()
353 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
349 ~ Self::post(&self)
350 | .endpoint(endpoint)
351 | .body(body)
352 | .call()
353 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:349:23
|
349 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:370:9
|
370 | / Ok(Self::post(&self)
371 | | .endpoint(endpoint)
372 | | .body(body)
373 | | .call()
374 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
370 ~ Self::post(&self)
371 | .endpoint(endpoint)
372 | .body(body)
373 | .call()
374 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:370:23
|
370 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:387:9
|
387 | / Ok(Self::post(&self)
388 | | .endpoint(endpoint)
389 | | .body(body)
390 | | .call()
391 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
387 ~ Self::post(&self)
388 | .endpoint(endpoint)
389 | .body(body)
390 | .call()
391 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:387:23
|
387 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:404:9
|
404 | / Ok(Self::post(&self)
405 | | .endpoint(endpoint)
406 | | .body(body)
407 | | .call()
408 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
404 ~ Self::post(&self)
405 | .endpoint(endpoint)
406 | .body(body)
407 | .call()
408 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:404:23
|
404 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:421:9
|
421 | / Ok(Self::post(&self)
422 | | .endpoint(endpoint)
423 | | .body(body)
424 | | .call()
425 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
421 ~ Self::post(&self)
422 | .endpoint(endpoint)
423 | .body(body)
424 | .call()
425 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:421:23
|
421 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:452:9
|
452 | / Ok(Self::post(&self)
453 | | .endpoint(endpoint)
454 | | .body(body)
455 | | .call()
456 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
452 ~ Self::post(&self)
453 | .endpoint(endpoint)
454 | .body(body)
455 | .call()
456 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:452:23
|
452 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:483:9
|
483 | / Ok(Self::post(&self)
484 | | .endpoint(endpoint)
485 | | .body(body)
486 | | .call()
487 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
483 ~ Self::post(&self)
484 | .endpoint(endpoint)
485 | .body(body)
486 | .call()
487 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:483:23
|
483 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:502:9
|
502 | / Ok(Self::post(&self)
503 | | .endpoint(endpoint)
504 | | .body(body)
505 | | .call()
506 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
502 ~ Self::post(&self)
503 | .endpoint(endpoint)
504 | .body(body)
505 | .call()
506 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:502:23
|
502 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:523:9
|
523 | / Ok(Self::post(&self)
524 | | .endpoint(endpoint)
525 | | .body(body)
526 | | .call()
527 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
523 ~ Self::post(&self)
524 | .endpoint(endpoint)
525 | .body(body)
526 | .call()
527 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:523:23
|
523 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:548:9
|
548 | / Ok(Self::post(&self)
549 | | .endpoint(endpoint)
550 | | .body(body)
551 | | .call()
552 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
548 ~ Self::post(&self)
549 | .endpoint(endpoint)
550 | .body(body)
551 | .call()
552 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:548:23
|
548 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:567:9
|
567 | / Ok(Self::post(&self)
568 | | .endpoint(endpoint)
569 | | .body(body)
570 | | .call()
571 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
567 ~ Self::post(&self)
568 | .endpoint(endpoint)
569 | .body(body)
570 | .call()
571 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:567:23
|
567 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:586:9
|
586 | / Ok(Self::post(&self)
587 | | .endpoint(endpoint)
588 | | .body(body)
589 | | .call()
590 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
586 ~ Self::post(&self)
587 | .endpoint(endpoint)
588 | .body(body)
589 | .call()
590 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:586:23
|
586 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:605:9
|
605 | / Ok(Self::post(&self)
606 | | .endpoint(endpoint)
607 | | .body(body)
608 | | .call()
609 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
605 ~ Self::post(&self)
606 | .endpoint(endpoint)
607 | .body(body)
608 | .call()
609 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:605:23
|
605 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:624:9
|
624 | / Ok(Self::post(&self)
625 | | .endpoint(endpoint)
626 | | .body(body)
627 | | .call()
628 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
624 ~ Self::post(&self)
625 | .endpoint(endpoint)
626 | .body(body)
627 | .call()
628 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:624:23
|
624 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:643:9
|
643 | / Ok(Self::post(&self)
644 | | .endpoint(endpoint)
645 | | .body(body)
646 | | .call()
647 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
643 ~ Self::post(&self)
644 | .endpoint(endpoint)
645 | .body(body)
646 | .call()
647 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:643:23
|
643 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:684:9
|
684 | / Ok(Self::post(&self)
685 | | .endpoint(endpoint)
686 | | .body(body)
687 | | .call()
688 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
684 ~ Self::post(&self)
685 | .endpoint(endpoint)
686 | .body(body)
687 | .call()
688 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:684:23
|
684 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:707:9
|
707 | / Ok(Self::post(&self)
708 | | .endpoint(endpoint)
709 | | .body(body)
710 | | .call()
711 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
707 ~ Self::post(&self)
708 | .endpoint(endpoint)
709 | .body(body)
710 | .call()
711 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:707:23
|
707 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:730:9
|
730 | / Ok(Self::post(&self)
731 | | .endpoint(endpoint)
732 | | .body(body)
733 | | .call()
734 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
730 ~ Self::post(&self)
731 | .endpoint(endpoint)
732 | .body(body)
733 | .call()
734 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:730:23
|
730 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:753:9
|
753 | / Ok(Self::post(&self)
754 | | .endpoint(endpoint)
755 | | .body(body)
756 | | .call()
757 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
753 ~ Self::post(&self)
754 | .endpoint(endpoint)
755 | .body(body)
756 | .call()
757 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:753:23
|
753 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:776:9
|
776 | / Ok(Self::post(&self)
777 | | .endpoint(endpoint)
778 | | .body(body)
779 | | .call()
780 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
776 ~ Self::post(&self)
777 | .endpoint(endpoint)
778 | .body(body)
779 | .call()
780 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:776:23
|
776 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:795:9
|
795 | / Ok(Self::post(&self)
796 | | .endpoint(endpoint)
797 | | .body(body)
798 | | .call()
799 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
795 ~ Self::post(&self)
796 | .endpoint(endpoint)
797 | .body(body)
798 | .call()
799 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:795:23
|
795 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: type parameter `T` goes unused in function definition
--> src/lib.rs:804:31
|
804 | pub async fn get_site_user<T: serde::Serialize>(
| ^^^^^^^^^^^^^^^^^^^^^ help: consider removing the parameter
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_type_parameters
= note: `#[warn(clippy::extra_unused_type_parameters)]` on by default
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:812:9
|
812 | / Ok(Self::post(&self)
813 | | .endpoint(endpoint)
814 | | .body(body)
815 | | .call()
816 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
812 ~ Self::post(&self)
813 | .endpoint(endpoint)
814 | .body(body)
815 | .call()
816 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:812:23
|
812 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:841:9
|
841 | / Ok(Self::post(&self)
842 | | .endpoint(endpoint)
843 | | .body(body)
844 | | .call()
845 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
841 ~ Self::post(&self)
842 | .endpoint(endpoint)
843 | .body(body)
844 | .call()
845 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:841:23
|
841 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:858:9
|
858 | / Ok(Self::post(&self)
859 | | .endpoint(endpoint)
860 | | .body(body)
861 | | .call()
862 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
858 ~ Self::post(&self)
859 | .endpoint(endpoint)
860 | .body(body)
861 | .call()
862 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:858:23
|
858 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:875:9
|
875 | / Ok(Self::post(&self)
876 | | .endpoint(endpoint)
877 | | .body(body)
878 | | .call()
879 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
875 ~ Self::post(&self)
876 | .endpoint(endpoint)
877 | .body(body)
878 | .call()
879 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:875:23
|
875 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:892:9
|
892 | / Ok(Self::post(&self)
893 | | .endpoint(endpoint)
894 | | .body(body)
895 | | .call()
896 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
892 ~ Self::post(&self)
893 | .endpoint(endpoint)
894 | .body(body)
895 | .call()
896 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:892:23
|
892 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:909:9
|
909 | / Ok(Self::post(&self)
910 | | .endpoint(endpoint)
911 | | .body(body)
912 | | .call()
913 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
909 ~ Self::post(&self)
910 | .endpoint(endpoint)
911 | .body(body)
912 | .call()
913 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:909:23
|
909 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:926:9
|
926 | / Ok(Self::post(&self)
927 | | .endpoint(endpoint)
928 | | .body(body)
929 | | .call()
930 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
926 ~ Self::post(&self)
927 | .endpoint(endpoint)
928 | .body(body)
929 | .call()
930 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:926:23
|
926 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:943:9
|
943 | / Ok(Self::post(&self)
944 | | .endpoint(endpoint)
945 | | .body(body)
946 | | .call()
947 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
943 ~ Self::post(&self)
944 | .endpoint(endpoint)
945 | .body(body)
946 | .call()
947 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:943:23
|
943 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:960:9
|
960 | / Ok(Self::post(&self)
961 | | .endpoint(endpoint)
962 | | .body(body)
963 | | .call()
964 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
960 ~ Self::post(&self)
961 | .endpoint(endpoint)
962 | .body(body)
963 | .call()
964 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:960:23
|
960 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:977:9
|
977 | / Ok(Self::post(&self)
978 | | .endpoint(endpoint)
979 | | .body(body)
980 | | .call()
981 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
977 ~ Self::post(&self)
978 | .endpoint(endpoint)
979 | .body(body)
980 | .call()
981 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:977:23
|
977 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:994:9
|
994 | / Ok(Self::post(&self)
995 | | .endpoint(endpoint)
996 | | .body(body)
997 | | .call()
998 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
994 ~ Self::post(&self)
995 | .endpoint(endpoint)
996 | .body(body)
997 | .call()
998 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:994:23
|
994 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1011:9
|
1011 | / Ok(Self::post(&self)
1012 | | .endpoint(endpoint)
1013 | | .body(body)
1014 | | .call()
1015 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1011 ~ Self::post(&self)
1012 | .endpoint(endpoint)
1013 | .body(body)
1014 | .call()
1015 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1011:23
|
1011 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1028:9
|
1028 | / Ok(Self::post(&self)
1029 | | .endpoint(endpoint)
1030 | | .body(body)
1031 | | .call()
1032 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1028 ~ Self::post(&self)
1029 | .endpoint(endpoint)
1030 | .body(body)
1031 | .call()
1032 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1028:23
|
1028 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1045:9
|
1045 | / Ok(Self::post(&self)
1046 | | .endpoint(endpoint)
1047 | | .body(body)
1048 | | .call()
1049 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1045 ~ Self::post(&self)
1046 | .endpoint(endpoint)
1047 | .body(body)
1048 | .call()
1049 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1045:23
|
1045 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1062:9
|
1062 | / Ok(Self::post(&self)
1063 | | .endpoint(endpoint)
1064 | | .body(body)
1065 | | .call()
1066 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1062 ~ Self::post(&self)
1063 | .endpoint(endpoint)
1064 | .body(body)
1065 | .call()
1066 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1062:23
|
1062 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1079:9
|
1079 | / Ok(Self::post(&self)
1080 | | .endpoint(endpoint)
1081 | | .body(body)
1082 | | .call()
1083 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1079 ~ Self::post(&self)
1080 | .endpoint(endpoint)
1081 | .body(body)
1082 | .call()
1083 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1079:23
|
1079 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1096:9
|
1096 | / Ok(Self::post(&self)
1097 | | .endpoint(endpoint)
1098 | | .body(body)
1099 | | .call()
1100 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1096 ~ Self::post(&self)
1097 | .endpoint(endpoint)
1098 | .body(body)
1099 | .call()
1100 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1096:23
|
1096 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1115:9
|
1115 | / Ok(Self::post(&self)
1116 | | .endpoint(endpoint)
1117 | | .body(body)
1118 | | .call()
1119 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1115 ~ Self::post(&self)
1116 | .endpoint(endpoint)
1117 | .body(body)
1118 | .call()
1119 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1115:23
|
1115 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1132:9
|
1132 | / Ok(Self::post(&self)
1133 | | .endpoint(endpoint)
1134 | | .body(body)
1135 | | .call()
1136 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1132 ~ Self::post(&self)
1133 | .endpoint(endpoint)
1134 | .body(body)
1135 | .call()
1136 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1132:23
|
1132 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1149:9
|
1149 | / Ok(Self::post(&self)
1150 | | .endpoint(endpoint)
1151 | | .body(body)
1152 | | .call()
1153 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1149 ~ Self::post(&self)
1150 | .endpoint(endpoint)
1151 | .body(body)
1152 | .call()
1153 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1149:23
|
1149 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1166:9
|
1166 | / Ok(Self::post(&self)
1167 | | .endpoint(endpoint)
1168 | | .body(body)
1169 | | .call()
1170 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1166 ~ Self::post(&self)
1167 | .endpoint(endpoint)
1168 | .body(body)
1169 | .call()
1170 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1166:23
|
1166 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1183:9
|
1183 | / Ok(Self::post(&self)
1184 | | .endpoint(endpoint)
1185 | | .body(body)
1186 | | .call()
1187 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1183 ~ Self::post(&self)
1184 | .endpoint(endpoint)
1185 | .body(body)
1186 | .call()
1187 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1183:23
|
1183 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1200:9
|
1200 | / Ok(Self::post(&self)
1201 | | .endpoint(endpoint)
1202 | | .body(body)
1203 | | .call()
1204 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1200 ~ Self::post(&self)
1201 | .endpoint(endpoint)
1202 | .body(body)
1203 | .call()
1204 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1200:23
|
1200 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1217:9
|
1217 | / Ok(Self::post(&self)
1218 | | .endpoint(endpoint)
1219 | | .body(body)
1220 | | .call()
1221 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1217 ~ Self::post(&self)
1218 | .endpoint(endpoint)
1219 | .body(body)
1220 | .call()
1221 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1217:23
|
1217 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs🔢9
|
1234 | / Ok(Self::post(&self)
1235 | | .endpoint(endpoint)
1236 | | .body(body)
1237 | | .call()
1238 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1234 ~ Self::post(&self)
1235 | .endpoint(endpoint)
1236 | .body(body)
1237 | .call()
1238 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs🔢23
|
1234 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1259:9
|
1259 | / Ok(Self::post(&self)
1260 | | .endpoint(endpoint)
1261 | | .body(body)
1262 | | .call()
1263 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1259 ~ Self::post(&self)
1260 | .endpoint(endpoint)
1261 | .body(body)
1262 | .call()
1263 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1259:23
|
1259 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1276:9
|
1276 | / Ok(Self::post(&self)
1277 | | .endpoint(endpoint)
1278 | | .body(body)
1279 | | .call()
1280 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1276 ~ Self::post(&self)
1277 | .endpoint(endpoint)
1278 | .body(body)
1279 | .call()
1280 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1276:23
|
1276 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1293:9
|
1293 | / Ok(Self::post(&self)
1294 | | .endpoint(endpoint)
1295 | | .body(body)
1296 | | .call()
1297 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1293 ~ Self::post(&self)
1294 | .endpoint(endpoint)
1295 | .body(body)
1296 | .call()
1297 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1293:23
|
1293 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1371:9
|
1371 | / Ok(Self::post(&self)
1372 | | .endpoint(endpoint)
1373 | | .body(body)
1374 | | .call()
1375 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1371 ~ Self::post(&self)
1372 | .endpoint(endpoint)
1373 | .body(body)
1374 | .call()
1375 ~ .await
|
warning: this `if` statement can be collapsed
--> src/lib.rs:1355:9
|
1355 | / if let Some(custom) = custom_fields {
1356 | | if custom.is_object() {
1357 | | let custom_temp_map = custom.as_object().unwrap();
1358 | | custom_map.extend(
... |
1364 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
1355 ~ if let Some(custom) = custom_fields
1356 ~ && custom.is_object() {
1357 | let custom_temp_map = custom.as_object().unwrap();
...
1362 | );
1363 ~ }
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1371:23
|
1371 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1416:9
|
1416 | / Ok(Self::post(&self)
1417 | | .endpoint(endpoint)
1418 | | .body(body)
1419 | | .maybe_upload(upload)
1420 | | .call()
1421 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1416 ~ Self::post(&self)
1417 | .endpoint(endpoint)
...
1420 | .call()
1421 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1416:23
|
1416 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1442:9
|
1442 | / Ok(Self::post(&self)
1443 | | .endpoint(endpoint)
1444 | | .body(body)
1445 | | .call()
1446 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1442 ~ Self::post(&self)
1443 | .endpoint(endpoint)
1444 | .body(body)
1445 | .call()
1446 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1442:23
|
1442 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1463:9
|
1463 | / Ok(Self::post(&self)
1464 | | .endpoint(endpoint)
1465 | | .body(body)
1466 | | .call()
1467 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1463 ~ Self::post(&self)
1464 | .endpoint(endpoint)
1465 | .body(body)
1466 | .call()
1467 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1463:23
|
1463 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1482:9
|
1482 | / Ok(Self::post(&self)
1483 | | .endpoint(endpoint)
1484 | | .body(body)
1485 | | .call()
1486 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1482 ~ Self::post(&self)
1483 | .endpoint(endpoint)
1484 | .body(body)
1485 | .call()
1486 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1482:23
|
1482 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1505:9
|
1505 | / Ok(Self::post(&self)
1506 | | .endpoint(endpoint)
1507 | | .body(body)
1508 | | .call()
1509 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1505 ~ Self::post(&self)
1506 | .endpoint(endpoint)
1507 | .body(body)
1508 | .call()
1509 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1505:23
|
1505 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1528:9
|
1528 | / Ok(Self::post(&self)
1529 | | .endpoint(endpoint)
1530 | | .body(body)
1531 | | .call()
1532 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1528 ~ Self::post(&self)
1529 | .endpoint(endpoint)
1530 | .body(body)
1531 | .call()
1532 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1528:23
|
1528 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1549:9
|
1549 | / Ok(Self::post(&self)
1550 | | .endpoint(endpoint)
1551 | | .body(body)
1552 | | .call()
1553 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1549 ~ Self::post(&self)
1550 | .endpoint(endpoint)
1551 | .body(body)
1552 | .call()
1553 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1549:23
|
1549 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1588:9
|
1588 | / Ok(Self::post(&self)
1589 | | .endpoint(endpoint)
1590 | | .body(body)
1591 | | .call()
1592 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1588 ~ Self::post(&self)
1589 | .endpoint(endpoint)
1590 | .body(body)
1591 | .call()
1592 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1588:23
|
1588 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1623:9
|
1623 | / Ok(Self::post(&self)
1624 | | .endpoint(endpoint)
1625 | | .body(body)
1626 | | .call()
1627 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1623 ~ Self::post(&self)
1624 | .endpoint(endpoint)
1625 | .body(body)
1626 | .call()
1627 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1623:23
|
1623 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1656:9
|
1656 | / Ok(Self::post(&self)
1657 | | .endpoint(endpoint)
1658 | | .body(body)
1659 | | .call()
1660 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1656 ~ Self::post(&self)
1657 | .endpoint(endpoint)
1658 | .body(body)
1659 | .call()
1660 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1656:23
|
1656 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1677:9
|
1677 | / Ok(Self::post(&self)
1678 | | .endpoint(endpoint)
1679 | | .body(body)
1680 | | .call()
1681 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1677 ~ Self::post(&self)
1678 | .endpoint(endpoint)
1679 | .body(body)
1680 | .call()
1681 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1677:23
|
1677 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1696:9
|
1696 | / Ok(Self::post(&self)
1697 | | .endpoint(endpoint)
1698 | | .body(body)
1699 | | .call()
1700 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1696 ~ Self::post(&self)
1697 | .endpoint(endpoint)
1698 | .body(body)
1699 | .call()
1700 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1696:23
|
1696 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1715:9
|
1715 | / Ok(Self::post(&self)
1716 | | .endpoint(endpoint)
1717 | | .body(body)
1718 | | .call()
1719 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1715 ~ Self::post(&self)
1716 | .endpoint(endpoint)
1717 | .body(body)
1718 | .call()
1719 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1715:23
|
1715 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1732:9
|
1732 | / Ok(Self::post(&self)
1733 | | .endpoint(endpoint)
1734 | | .body(body)
1735 | | .call()
1736 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1732 ~ Self::post(&self)
1733 | .endpoint(endpoint)
1734 | .body(body)
1735 | .call()
1736 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1732:23
|
1732 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1749:9
|
1749 | / Ok(Self::post(&self)
1750 | | .endpoint(endpoint)
1751 | | .body(body)
1752 | | .call()
1753 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1749 ~ Self::post(&self)
1750 | .endpoint(endpoint)
1751 | .body(body)
1752 | .call()
1753 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1749:23
|
1749 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1770:9
|
1770 | / Ok(Self::post(&self)
1771 | | .endpoint(endpoint)
1772 | | .body(body)
1773 | | .call()
1774 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1770 ~ Self::post(&self)
1771 | .endpoint(endpoint)
1772 | .body(body)
1773 | .call()
1774 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1770:23
|
1770 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1791:9
|
1791 | / Ok(Self::post(&self)
1792 | | .endpoint(endpoint)
1793 | | .body(body)
1794 | | .call()
1795 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1791 ~ Self::post(&self)
1792 | .endpoint(endpoint)
1793 | .body(body)
1794 | .call()
1795 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1791:23
|
1791 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1808:9
|
1808 | / Ok(Self::post(&self)
1809 | | .endpoint(endpoint)
1810 | | .body(body)
1811 | | .call()
1812 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1808 ~ Self::post(&self)
1809 | .endpoint(endpoint)
1810 | .body(body)
1811 | .call()
1812 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1808:23
|
1808 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1827:9
|
1827 | / Ok(Self::post(&self)
1828 | | .endpoint(endpoint)
1829 | | .body(body)
1830 | | .call()
1831 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1827 ~ Self::post(&self)
1828 | .endpoint(endpoint)
1829 | .body(body)
1830 | .call()
1831 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1827:23
|
1827 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1874:9
|
1874 | / Ok(Self::post(&self)
1875 | | .endpoint(endpoint)
1876 | | .body(body)
1877 | | .maybe_upload(upload)
1878 | | .call()
1879 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1874 ~ Self::post(&self)
1875 | .endpoint(endpoint)
...
1878 | .call()
1879 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1874:23
|
1874 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1902:9
|
1902 | / Ok(Self::post(&self)
1903 | | .endpoint(endpoint)
1904 | | .body(body)
1905 | | .call()
1906 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1902 ~ Self::post(&self)
1903 | .endpoint(endpoint)
1904 | .body(body)
1905 | .call()
1906 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1902:23
|
1902 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:1921:9
|
1921 | / Ok(Self::post(&self)
1922 | | .endpoint(endpoint)
1923 | | .body(body)
1924 | | .call()
1925 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
1921 ~ Self::post(&self)
1922 | .endpoint(endpoint)
1923 | .body(body)
1924 | .call()
1925 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:1921:23
|
1921 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2001:9
|
2001 | / Ok(Self::post(&self)
2002 | | .endpoint(endpoint)
2003 | | .body(body)
2004 | | .call()
2005 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2001 ~ Self::post(&self)
2002 | .endpoint(endpoint)
2003 | .body(body)
2004 | .call()
2005 ~ .await
|
warning: this `if` statement can be collapsed
--> src/lib.rs:1985:9
|
1985 | / if let Some(custom) = custom_fields {
1986 | | if custom.is_object() {
1987 | | let custom_temp_map = custom.as_object().unwrap();
1988 | | custom_map.extend(
... |
1994 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
1985 ~ if let Some(custom) = custom_fields
1986 ~ && custom.is_object() {
1987 | let custom_temp_map = custom.as_object().unwrap();
...
1992 | );
1993 ~ }
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2001:23
|
2001 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2024:9
|
2024 | / Ok(Self::post(&self)
2025 | | .endpoint(endpoint)
2026 | | .body(body)
2027 | | .call()
2028 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2024 ~ Self::post(&self)
2025 | .endpoint(endpoint)
2026 | .body(body)
2027 | .call()
2028 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2024:23
|
2024 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2043:9
|
2043 | / Ok(Self::post(&self)
2044 | | .endpoint(endpoint)
2045 | | .body(body)
2046 | | .call()
2047 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2043 ~ Self::post(&self)
2044 | .endpoint(endpoint)
2045 | .body(body)
2046 | .call()
2047 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2043:23
|
2043 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2066:9
|
2066 | / Ok(Self::post(&self)
2067 | | .endpoint(endpoint)
2068 | | .body(body)
2069 | | .call()
2070 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2066 ~ Self::post(&self)
2067 | .endpoint(endpoint)
2068 | .body(body)
2069 | .call()
2070 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2066:23
|
2066 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2105:9
|
2105 | / Ok(Self::post(&self)
2106 | | .endpoint(endpoint)
2107 | | .body(body)
2108 | | .call()
2109 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2105 ~ Self::post(&self)
2106 | .endpoint(endpoint)
2107 | .body(body)
2108 | .call()
2109 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2105:23
|
2105 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2138:9
|
2138 | / Ok(Self::post(&self)
2139 | | .endpoint(endpoint)
2140 | | .body(body)
2141 | | .call()
2142 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2138 ~ Self::post(&self)
2139 | .endpoint(endpoint)
2140 | .body(body)
2141 | .call()
2142 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2138:23
|
2138 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2171:9
|
2171 | / Ok(Self::post(&self)
2172 | | .endpoint(endpoint)
2173 | | .body(body)
2174 | | .call()
2175 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2171 ~ Self::post(&self)
2172 | .endpoint(endpoint)
2173 | .body(body)
2174 | .call()
2175 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2171:23
|
2171 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2204:9
|
2204 | / Ok(Self::post(&self)
2205 | | .endpoint(endpoint)
2206 | | .body(body)
2207 | | .call()
2208 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2204 ~ Self::post(&self)
2205 | .endpoint(endpoint)
2206 | .body(body)
2207 | .call()
2208 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2204:23
|
2204 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2221:9
|
2221 | / Ok(Self::post(&self)
2222 | | .endpoint(endpoint)
2223 | | .body(body)
2224 | | .call()
2225 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2221 ~ Self::post(&self)
2222 | .endpoint(endpoint)
2223 | .body(body)
2224 | .call()
2225 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2221:23
|
2221 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2242:9
|
2242 | / Ok(Self::post(&self)
2243 | | .endpoint(endpoint)
2244 | | .body(body)
2245 | | .call()
2246 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2242 ~ Self::post(&self)
2243 | .endpoint(endpoint)
2244 | .body(body)
2245 | .call()
2246 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2242:23
|
2242 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2259:9
|
2259 | / Ok(Self::post(&self)
2260 | | .endpoint(endpoint)
2261 | | .body(body)
2262 | | .call()
2263 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2259 ~ Self::post(&self)
2260 | .endpoint(endpoint)
2261 | .body(body)
2262 | .call()
2263 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2259:23
|
2259 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2280:9
|
2280 | / Ok(Self::post(&self)
2281 | | .endpoint(endpoint)
2282 | | .body(body)
2283 | | .call()
2284 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2280 ~ Self::post(&self)
2281 | .endpoint(endpoint)
2282 | .body(body)
2283 | .call()
2284 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2280:23
|
2280 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2299:9
|
2299 | / Ok(Self::post(&self)
2300 | | .endpoint(endpoint)
2301 | | .body(body)
2302 | | .call()
2303 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2299 ~ Self::post(&self)
2300 | .endpoint(endpoint)
2301 | .body(body)
2302 | .call()
2303 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2299:23
|
2299 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2318:9
|
2318 | / Ok(Self::post(&self)
2319 | | .endpoint(endpoint)
2320 | | .body(body)
2321 | | .call()
2322 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2318 ~ Self::post(&self)
2319 | .endpoint(endpoint)
2320 | .body(body)
2321 | .call()
2322 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2318:23
|
2318 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2337:9
|
2337 | / Ok(Self::post(&self)
2338 | | .endpoint(endpoint)
2339 | | .body(body)
2340 | | .call()
2341 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2337 ~ Self::post(&self)
2338 | .endpoint(endpoint)
2339 | .body(body)
2340 | .call()
2341 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2337:23
|
2337 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2356:9
|
2356 | / Ok(Self::post(&self)
2357 | | .endpoint(endpoint)
2358 | | .body(body)
2359 | | .call()
2360 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2356 ~ Self::post(&self)
2357 | .endpoint(endpoint)
2358 | .body(body)
2359 | .call()
2360 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2356:23
|
2356 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2389:9
|
2389 | / Ok(Self::post(&self)
2390 | | .endpoint(endpoint)
2391 | | .body(body)
2392 | | .call()
2393 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2389 ~ Self::post(&self)
2390 | .endpoint(endpoint)
2391 | .body(body)
2392 | .call()
2393 ~ .await
|
warning: this `if` statement can be collapsed
--> src/lib.rs:2373:9
|
2373 | / if let Some(options_obj) = options {
2374 | | if options_obj.is_object() {
2375 | | let custom_temp_map = options_obj.as_object().unwrap();
2376 | | custom_map.extend(
... |
2382 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
2373 ~ if let Some(options_obj) = options
2374 ~ && options_obj.is_object() {
2375 | let custom_temp_map = options_obj.as_object().unwrap();
...
2380 | );
2381 ~ }
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2389:23
|
2389 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2469:9
|
2469 | / Ok(Self::post(&self)
2470 | | .endpoint(endpoint)
2471 | | .body(body)
2472 | | .call()
2473 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2469 ~ Self::post(&self)
2470 | .endpoint(endpoint)
2471 | .body(body)
2472 | .call()
2473 ~ .await
|
warning: this `if` statement can be collapsed
--> src/lib.rs:2453:9
|
2453 | / if let Some(custom) = custom_fields {
2454 | | if custom.is_object() {
2455 | | let custom_temp_map = custom.as_object().unwrap();
2456 | | custom_map.extend(
... |
2462 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
2453 ~ if let Some(custom) = custom_fields
2454 ~ && custom.is_object() {
2455 | let custom_temp_map = custom.as_object().unwrap();
...
2460 | );
2461 ~ }
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2469:23
|
2469 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2516:9
|
2516 | / Ok(Self::post(&self)
2517 | | .endpoint(endpoint)
2518 | | .body(body)
2519 | | .maybe_upload(upload)
2520 | | .call()
2521 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2516 ~ Self::post(&self)
2517 | .endpoint(endpoint)
...
2520 | .call()
2521 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2516:23
|
2516 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2556:9
|
2556 | / Ok(Self::post(&self)
2557 | | .endpoint(endpoint)
2558 | | .body(body)
2559 | | .call()
2560 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2556 ~ Self::post(&self)
2557 | .endpoint(endpoint)
2558 | .body(body)
2559 | .call()
2560 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2556:23
|
2556 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2589:9
|
2589 | / Ok(Self::post(&self)
2590 | | .endpoint(endpoint)
2591 | | .body(body)
2592 | | .call()
2593 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2589 ~ Self::post(&self)
2590 | .endpoint(endpoint)
2591 | .body(body)
2592 | .call()
2593 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2589:23
|
2589 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2622:9
|
2622 | / Ok(Self::post(&self)
2623 | | .endpoint(endpoint)
2624 | | .body(body)
2625 | | .call()
2626 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2622 ~ Self::post(&self)
2623 | .endpoint(endpoint)
2624 | .body(body)
2625 | .call()
2626 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2622:23
|
2622 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2639:9
|
2639 | / Ok(Self::post(&self)
2640 | | .endpoint(endpoint)
2641 | | .body(body)
2642 | | .call()
2643 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2639 ~ Self::post(&self)
2640 | .endpoint(endpoint)
2641 | .body(body)
2642 | .call()
2643 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2639:23
|
2639 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2656:9
|
2656 | / Ok(Self::post(&self)
2657 | | .endpoint(endpoint)
2658 | | .body(body)
2659 | | .call()
2660 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2656 ~ Self::post(&self)
2657 | .endpoint(endpoint)
2658 | .body(body)
2659 | .call()
2660 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2656:23
|
2656 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2673:9
|
2673 | / Ok(Self::post(&self)
2674 | | .endpoint(endpoint)
2675 | | .body(body)
2676 | | .call()
2677 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2673 ~ Self::post(&self)
2674 | .endpoint(endpoint)
2675 | .body(body)
2676 | .call()
2677 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2673:23
|
2673 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2690:9
|
2690 | / Ok(Self::post(&self)
2691 | | .endpoint(endpoint)
2692 | | .body(body)
2693 | | .call()
2694 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2690 ~ Self::post(&self)
2691 | .endpoint(endpoint)
2692 | .body(body)
2693 | .call()
2694 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2690:23
|
2690 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2707:9
|
2707 | / Ok(Self::post(&self)
2708 | | .endpoint(endpoint)
2709 | | .body(body)
2710 | | .call()
2711 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2707 ~ Self::post(&self)
2708 | .endpoint(endpoint)
2709 | .body(body)
2710 | .call()
2711 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2707:23
|
2707 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2724:9
|
2724 | / Ok(Self::post(&self)
2725 | | .endpoint(endpoint)
2726 | | .body(body)
2727 | | .call()
2728 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2724 ~ Self::post(&self)
2725 | .endpoint(endpoint)
2726 | .body(body)
2727 | .call()
2728 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2724:23
|
2724 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2745:9
|
2745 | / Ok(Self::post(&self)
2746 | | .endpoint(endpoint)
2747 | | .body(body)
2748 | | .call()
2749 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2745 ~ Self::post(&self)
2746 | .endpoint(endpoint)
2747 | .body(body)
2748 | .call()
2749 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2745:23
|
2745 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2766:9
|
2766 | / Ok(Self::post(&self)
2767 | | .endpoint(endpoint)
2768 | | .body(body)
2769 | | .call()
2770 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2766 ~ Self::post(&self)
2767 | .endpoint(endpoint)
2768 | .body(body)
2769 | .call()
2770 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2766:23
|
2766 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2785:9
|
2785 | / Ok(Self::post(&self)
2786 | | .endpoint(endpoint)
2787 | | .body(body)
2788 | | .call()
2789 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2785 ~ Self::post(&self)
2786 | .endpoint(endpoint)
2787 | .body(body)
2788 | .call()
2789 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2785:23
|
2785 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2802:9
|
2802 | / Ok(Self::post(&self)
2803 | | .endpoint(endpoint)
2804 | | .body(body)
2805 | | .call()
2806 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2802 ~ Self::post(&self)
2803 | .endpoint(endpoint)
2804 | .body(body)
2805 | .call()
2806 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2802:23
|
2802 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2819:9
|
2819 | / Ok(Self::post(&self)
2820 | | .endpoint(endpoint)
2821 | | .body(body)
2822 | | .call()
2823 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2819 ~ Self::post(&self)
2820 | .endpoint(endpoint)
2821 | .body(body)
2822 | .call()
2823 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2819:23
|
2819 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2836:9
|
2836 | / Ok(Self::post(&self)
2837 | | .endpoint(endpoint)
2838 | | .body(body)
2839 | | .call()
2840 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2836 ~ Self::post(&self)
2837 | .endpoint(endpoint)
2838 | .body(body)
2839 | .call()
2840 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2836:23
|
2836 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2853:9
|
2853 | / Ok(Self::post(&self)
2854 | | .endpoint(endpoint)
2855 | | .body(body)
2856 | | .call()
2857 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2853 ~ Self::post(&self)
2854 | .endpoint(endpoint)
2855 | .body(body)
2856 | .call()
2857 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2853:23
|
2853 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2870:9
|
2870 | / Ok(Self::post(&self)
2871 | | .endpoint(endpoint)
2872 | | .body(body)
2873 | | .call()
2874 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2870 ~ Self::post(&self)
2871 | .endpoint(endpoint)
2872 | .body(body)
2873 | .call()
2874 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2870:23
|
2870 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2887:9
|
2887 | / Ok(Self::post(&self)
2888 | | .endpoint(endpoint)
2889 | | .body(body)
2890 | | .call()
2891 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2887 ~ Self::post(&self)
2888 | .endpoint(endpoint)
2889 | .body(body)
2890 | .call()
2891 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2887:23
|
2887 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2906:9
|
2906 | / Ok(Self::post(&self)
2907 | | .endpoint(endpoint)
2908 | | .body(body)
2909 | | .call()
2910 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2906 ~ Self::post(&self)
2907 | .endpoint(endpoint)
2908 | .body(body)
2909 | .call()
2910 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2906:23
|
2906 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2923:9
|
2923 | / Ok(Self::post(&self)
2924 | | .endpoint(endpoint)
2925 | | .body(body)
2926 | | .call()
2927 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2923 ~ Self::post(&self)
2924 | .endpoint(endpoint)
2925 | .body(body)
2926 | .call()
2927 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2923:23
|
2923 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2940:9
|
2940 | / Ok(Self::post(&self)
2941 | | .endpoint(endpoint)
2942 | | .body(body)
2943 | | .call()
2944 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2940 ~ Self::post(&self)
2941 | .endpoint(endpoint)
2942 | .body(body)
2943 | .call()
2944 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2940:23
|
2940 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2959:9
|
2959 | / Ok(Self::post(&self)
2960 | | .endpoint(endpoint)
2961 | | .body(body)
2962 | | .call()
2963 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2959 ~ Self::post(&self)
2960 | .endpoint(endpoint)
2961 | .body(body)
2962 | .call()
2963 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2959:23
|
2959 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2978:9
|
2978 | / Ok(Self::post(&self)
2979 | | .endpoint(endpoint)
2980 | | .body(body)
2981 | | .call()
2982 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2978 ~ Self::post(&self)
2979 | .endpoint(endpoint)
2980 | .body(body)
2981 | .call()
2982 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2978:23
|
2978 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:2995:9
|
2995 | / Ok(Self::post(&self)
2996 | | .endpoint(endpoint)
2997 | | .body(body)
2998 | | .call()
2999 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
2995 ~ Self::post(&self)
2996 | .endpoint(endpoint)
2997 | .body(body)
2998 | .call()
2999 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:2995:23
|
2995 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:3012:9
|
3012 | / Ok(Self::post(&self)
3013 | | .endpoint(endpoint)
3014 | | .body(body)
3015 | | .call()
3016 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
3012 ~ Self::post(&self)
3013 | .endpoint(endpoint)
3014 | .body(body)
3015 | .call()
3016 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:3012:23
|
3012 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:3029:9
|
3029 | / Ok(Self::post(&self)
3030 | | .endpoint(endpoint)
3031 | | .body(body)
3032 | | .call()
3033 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
3029 ~ Self::post(&self)
3030 | .endpoint(endpoint)
3031 | .body(body)
3032 | .call()
3033 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:3029:23
|
3029 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: enclosing `Ok` and `?` operator are unneeded
--> src/lib.rs:3048:9
|
3048 | / Ok(Self::post(&self)
3049 | | .endpoint(endpoint)
3050 | | .body(body)
3051 | | .call()
3052 | | .await?)
| |____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: remove the enclosing `Ok` and `?` operator
|
3048 ~ Self::post(&self)
3049 | .endpoint(endpoint)
3050 | .body(body)
3051 | .call()
3052 ~ .await
|
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:3048:23
|
3048 | Ok(Self::post(&self)
| ^^^^^ help: change this to: `self`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: `ckanaction` (lib) generated 271 warnings (run `cargo clippy --fix --lib -p ckanaction` to apply 271 suggestions)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.24s
|
||
|---|---|---|
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
ckanaction
Rust library crate to access CKAN Action API endpoints through Rust builders. Based on the CKAN Action API v3. Endpoints are expected to return with an output of type serde_json::Value.
cargo add ckanaction
Examples
Run /package_list endpoint with a limit of 5 results per page and print the output:
use dotenvy::dotenv;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Load environment variables from .env file
dotenv()?;
// Initialize and build CKAN struct
let ckan = ckanaction::CKAN::builder()
.url("http://localhost:5000")
.token(dotenvy::var("CKAN_API_TOKEN")?)
.build();
// Send request to /package_list and print output
let result = ckan.package_list()
.limit(5) // <-- This is an optional parameter you can remove
.call()
.await?;
println!("{result:#?}");
Ok(())
}
The following examples won't include the boilerplate code.
Create a new package (dataset) with custom fields:
let custom_fields = serde_json::json!({
"data_contact_email": "support@dathere.com",
"update_frequency": "daily",
"related_resources": [],
});
let result = ckan.package_create()
.name("my-new-package".to_string())
.custom_fields(custom_fields)
.private(false)
.call()
.await?;
println!("{result:#?}");
Create a new resource with a new file from a file path:
let path_buf = current_dir()?.join("data.csv");
let result = ckan
.resource_create()
.package_id("3mz0qhbb-cdb0-ewst-x7c0-casnkwv0edub".to_string())
.name("My new resource".to_string())
.format("CSV".to_string())
.upload(path_buf)
.call()
.await?;
println!("{result:#?}");
Some endpoints without any parameters may not need a builder such as /status_show so there is no .call() method after .status_show():
let status_show = ckan.status_show().await?;
println!("{status_show:#?}");
Notes
- If you use a
maybe_fn()then if you provideNoneit will be ignored and that parameter will not be added to the JSON body. This library assumesNonewould not be provided as a value (since the cases where it is a value is often the default value that the CKAN API already has set for that parameter).