Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust server: warning: you should consider deriving a Default implementation for server::protocol::Builder #32

Open
problame opened this issue Jul 5, 2020 · 0 comments
Assignees

Comments

@problame
Copy link
Collaborator

problame commented Jul 5, 2020

warning: you should consider deriving a `Default` implementation for `server::protocol::Builder`
   --> /home/cs/orehab-services/target/debug/build/my-project-351e70c4be1ed340/out/protocol.rs:235:5
    |
235 | /     pub fn new() -> Self {
236 | |         Self { services: vec![] }
237 | |     }
    | |_____^
    |
    = note: `#[warn(clippy::new_without_default)]` on by default
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
help: try this
    |
231 | #[derive(Default)]
    |

warning: 2 warnings emitted
@problame problame self-assigned this Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant