1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-05-09 08:00:41 +00:00

fix some lints

This commit is contained in:
Dominic 2021-01-18 01:05:56 +01:00
parent b807ae2796
commit 002cfb1b4d
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
7 changed files with 18 additions and 9 deletions

View file

@ -112,6 +112,7 @@ To change settings, you need to put this type into gotham's [State]:
```rust,no_run
# use gotham::{router::builder::*, pipeline::{new_pipeline, single::single_pipeline}, state::State};
# use gotham_restful::{*, cors::Origin};
# #[cfg_attr(feature = "cargo-clippy", allow(clippy::needless_doctest_main))]
fn main() {
let cors = CorsConfig {
origin: Origin::Star,

View file

@ -1,12 +1,8 @@
#![allow(clippy::tabs_in_doc_comments)]
#![warn(
missing_debug_implementations,
rust_2018_idioms,
clippy::wildcard_imports,
clippy::redundant_closure_for_method_calls
)]
#![warn(missing_debug_implementations, rust_2018_idioms)]
#![deny(broken_intra_doc_links)]
#![forbid(unsafe_code)]
// can we have a lint for spaces in doc comments please?
#![cfg_attr(feature = "cargo-clippy", allow(clippy::tabs_in_doc_comments))]
/*!
This crate is an extension to the popular [gotham web framework][gotham] for Rust. It allows you to
create resources with assigned endpoints that aim to be a more convenient way of creating handlers