Merge branch 'master' of https://git.cscherr.de/PlexSheep/rs-basic
cargo devel CI / cargo CI (push) Successful in 1m56s
Details
cargo devel CI / cargo CI (push) Successful in 1m56s
Details
This commit is contained in:
commit
ef01e4d808
|
@ -1,7 +1,7 @@
|
|||
use std::{convert::Infallible, fmt::Display, str::FromStr};
|
||||
|
||||
use crate::{store::Sequence, Item, Store};
|
||||
use rand::{prelude::*, seq::SliceRandom};
|
||||
use rand::seq::SliceRandom;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
const ALPHABET: &str = "qwertzuiopasdfghjklyxcvbnmQWERTZUIOPASDFGHJKLYXCVBNM";
|
||||
|
|
|
@ -2,13 +2,13 @@ use std::{collections::HashMap, convert::Infallible, str::FromStr};
|
|||
|
||||
use libpt::log::{debug, error, info};
|
||||
use warp::{
|
||||
filters::{path::param, BoxedFilter},
|
||||
filters::BoxedFilter,
|
||||
http::StatusCode,
|
||||
reject::{MissingHeader, Rejection},
|
||||
reply, Filter, Reply,
|
||||
};
|
||||
|
||||
use crate::{Client, Id, Item, Store, Token, StoreErr};
|
||||
use crate::{Client, Id, Store, StoreErr, Token};
|
||||
|
||||
pub fn with_store(store: Store) -> impl Filter<Extract = (Store,), Error = Infallible> + Clone {
|
||||
warp::any().map(move || store.clone())
|
||||
|
|
Loading…
Reference in New Issue