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:
parent
ce570c4787
commit
24893223b2
3 changed files with 2 additions and 6 deletions
|
@ -110,10 +110,6 @@ enum MethodArgumentType {
|
|||
}
|
||||
|
||||
impl MethodArgumentType {
|
||||
fn is_state_ref(&self) -> bool {
|
||||
matches!(self, Self::StateRef | Self::StateMutRef)
|
||||
}
|
||||
|
||||
fn is_method_arg(&self) -> bool {
|
||||
matches!(self, Self::MethodArg(_))
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#![allow(clippy::tabs_in_doc_comments)]
|
||||
#![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
|
||||
create resources with assigned methods that aim to be a more convenient way of creating handlers
|
||||
|
|
|
@ -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
|
||||
|
|
||||
9 | async fn read_all(state : &State)
|
||||
|
|
Loading…
Add table
Reference in a new issue