Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
clippy 0.0.201 - Docs.rs
[go: Go Back, main page]

clippy 0.0.201

A bunch of helpful lints to avoid common pitfalls in Rust
error: this block may be rewritten with the `?` operator
 --> $DIR/question_mark.rs:2:2
  |
2 |       if a.is_none() {
  |  _____^
3 | |         return None
4 | |     }
  | |_____^ help: replace_it_with: `a?;`
  |
  = note: `-D question-mark` implied by `-D warnings`

error: this block may be rewritten with the `?` operator
  --> $DIR/question_mark.rs:37:3
   |
37 |           if (self.opt).is_none() {
   |  _________^
38 | |             return None;
39 | |         }
   | |_________^ help: replace_it_with: `(self.opt)?;`

error: aborting due to 2 previous errors