1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 04:52:28 +00:00

remove unused code and fix lint warning

This commit is contained in:
Dominic 2020-11-20 01:30:12 +01:00
parent ce570c4787
commit 24893223b2
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
3 changed files with 2 additions and 6 deletions

View file

@ -110,10 +110,6 @@ enum MethodArgumentType {
} }
impl MethodArgumentType { impl MethodArgumentType {
fn is_state_ref(&self) -> bool {
matches!(self, Self::StateRef | Self::StateMutRef)
}
fn is_method_arg(&self) -> bool { fn is_method_arg(&self) -> bool {
matches!(self, Self::MethodArg(_)) matches!(self, Self::MethodArg(_))
} }

View file

@ -1,6 +1,6 @@
#![allow(clippy::tabs_in_doc_comments)] #![allow(clippy::tabs_in_doc_comments)]
#![warn(missing_debug_implementations, rust_2018_idioms)] #![warn(missing_debug_implementations, rust_2018_idioms)]
#![deny(intra_doc_link_resolution_failure)] #![deny(broken_intra_doc_links)]
/*! /*!
This crate is an extension to the popular [gotham web framework][gotham] for Rust. It allows you to This crate is an extension to the popular [gotham web framework][gotham] for Rust. It allows you to
create resources with assigned methods that aim to be a more convenient way of creating handlers create resources with assigned methods that aim to be a more convenient way of creating handlers

View file

@ -1,4 +1,4 @@
error: async fn must not take &State as an argument as State is not Sync, consider boxing error: async fn must not take &State as an argument as State is not Sync, consider taking &mut State
--> $DIR/method_async_state.rs:9:19 --> $DIR/method_async_state.rs:9:19
| |
9 | async fn read_all(state : &State) 9 | async fn read_all(state : &State)