Makefile: add RUSTFLAGS with -D warnings
Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (push) Failing after 8m21s
Details
Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (push) Failing after 8m21s
Details
parent
5c2b04719b
commit
0f60009ea9
7
Makefile
7
Makefile
|
@ -23,6 +23,7 @@ MIN_RUSTC ?= 1.65.0
|
||||||
CARGO_BIN ?= cargo
|
CARGO_BIN ?= cargo
|
||||||
TAGREF_BIN ?= tagref
|
TAGREF_BIN ?= tagref
|
||||||
CARGO_ARGS ?=
|
CARGO_ARGS ?=
|
||||||
|
RUSTFLAGS ?= -D warnings -W unreachable-pub -W rust-2021-compatibility
|
||||||
CARGO_SORT_BIN = cargo-sort
|
CARGO_SORT_BIN = cargo-sort
|
||||||
PRINTF = /usr/bin/printf
|
PRINTF = /usr/bin/printf
|
||||||
|
|
||||||
|
@ -96,7 +97,7 @@ help:
|
||||||
|
|
||||||
.PHONY: check
|
.PHONY: check
|
||||||
check: check-tagrefs
|
check: check-tagrefs
|
||||||
@${CARGO_BIN} check ${CARGO_ARGS} ${CARGO_COLOR}--target-dir="${CARGO_TARGET_DIR}" ${FEATURES} --all --tests --examples --benches --bins
|
@RUSTFLAGS='${RUSTFLAGS}' ${CARGO_BIN} check ${CARGO_ARGS} ${CARGO_COLOR}--target-dir="${CARGO_TARGET_DIR}" ${FEATURES} --all --tests --examples --benches --bins
|
||||||
|
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
fmt:
|
fmt:
|
||||||
|
@ -105,11 +106,11 @@ fmt:
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
@$(CARGO_BIN) clippy --no-deps --all-features --all --tests --examples --benches --bins
|
@RUSTFLAGS='${RUSTFLAGS}' $(CARGO_BIN) clippy --no-deps --all-features --all --tests --examples --benches --bins
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
@${CARGO_BIN} test ${CARGO_ARGS} ${CARGO_COLOR}--target-dir="${CARGO_TARGET_DIR}" --all --tests --examples --benches --bins
|
@RUSTFLAGS='${RUSTFLAGS}' ${CARGO_BIN} test ${CARGO_ARGS} ${CARGO_COLOR}--target-dir="${CARGO_TARGET_DIR}" --all --tests --examples --benches --bins
|
||||||
|
|
||||||
.PHONY: check-deps
|
.PHONY: check-deps
|
||||||
check-deps:
|
check-deps:
|
||||||
|
|
|
@ -37,7 +37,7 @@ use crate::{
|
||||||
pub type StateStdout =
|
pub type StateStdout =
|
||||||
termion::screen::AlternateScreen<termion::raw::RawTerminal<BufWriter<std::io::Stdout>>>;
|
termion::screen::AlternateScreen<termion::raw::RawTerminal<BufWriter<std::io::Stdout>>>;
|
||||||
|
|
||||||
pub type DrawHorizontalSegmentFn = fn(&mut CellBuffer, &mut StateStdout, usize, usize, usize) -> ();
|
type DrawHorizontalSegmentFn = fn(&mut CellBuffer, &mut StateStdout, usize, usize, usize) -> ();
|
||||||
|
|
||||||
pub struct Screen {
|
pub struct Screen {
|
||||||
pub cols: usize,
|
pub cols: usize,
|
||||||
|
|
Loading…
Reference in New Issue