fengsp / pencil

A web application microframework for Rust
https://fengsp.github.io/pencil/
Other
870 stars 43 forks source link

Refactor some codes as rust-clippy suggested #4

Closed messense closed 8 years ago

messense commented 8 years ago
multirust run nightly cargo build --features clippy

One issue remains.

src/types.rs:47:1: 50:2 error: All variants have the same prefix: `Pen`
src/types.rs:47 pub enum PencilError {
src/types.rs:48     PenHTTPError(HTTPError),
src/types.rs:49     PenUserError(UserError),
src/types.rs:50 }
src/lib.rs:50:36: 50:42 note: lint level defined here
src/lib.rs:50 #![cfg_attr(feature="clippy", deny(clippy))]
                                                 ^~~~~~
src/types.rs:47:1: 50:2 help: remove the prefixes and use full paths to the variants instead of glob imports
for further information visit https://github.com/Manishearth/rust-clippy/wiki#enum_variant_names