Fix no-default-features.
This commit is contained in:
parent
b49c44a198
commit
dcdde49d91
@ -195,9 +195,7 @@ mod server {
|
|||||||
|
|
||||||
pub struct Middleware;
|
pub struct Middleware;
|
||||||
impl RequestMiddleware for Middleware {
|
impl RequestMiddleware for Middleware {
|
||||||
fn on_request(
|
fn on_request(&self, _req: hyper::Request) -> RequestMiddlewareAction {
|
||||||
&self, _req: &hyper::server::Request<hyper::net::HttpStream>, _control: &hyper::Control
|
|
||||||
) -> RequestMiddlewareAction {
|
|
||||||
unreachable!()
|
unreachable!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4
test.sh
4
test.sh
@ -24,6 +24,10 @@ esac
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Validate chainspecs
|
||||||
./scripts/validate_chainspecs.sh
|
./scripts/validate_chainspecs.sh
|
||||||
|
|
||||||
cargo test -j 8 $OPTIONS --features "$FEATURES" --all --exclude evmjit $1
|
cargo test -j 8 $OPTIONS --features "$FEATURES" --all --exclude evmjit $1
|
||||||
|
|
||||||
|
# Validate --no-default-features build
|
||||||
|
cargo check --no-default-features
|
||||||
|
Loading…
Reference in New Issue
Block a user