diff --git a/CHANGELOG.md b/CHANGELOG.md index f63f54cd..207bb88b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1613,4 +1613,3 @@ the Rocket APIs. They are summarized through the following API changes: ## Testing * Add a significant number of codegen tests. - diff --git a/benchmarks/src/routing.rs b/benchmarks/src/routing.rs index a0521cea..65411aaa 100644 --- a/benchmarks/src/routing.rs +++ b/benchmarks/src/routing.rs @@ -126,4 +126,3 @@ pub fn bench_bitwarden_routes(c: &mut Criterion) { } })); } - diff --git a/contrib/sync_db_pools/lib/src/poolable.rs b/contrib/sync_db_pools/lib/src/poolable.rs index 759d45a2..44308076 100644 --- a/contrib/sync_db_pools/lib/src/poolable.rs +++ b/contrib/sync_db_pools/lib/src/poolable.rs @@ -246,4 +246,3 @@ impl Poolable for memcache::Client { Ok(r2d2::Pool::builder().max_size(config.pool_size).build(manager)?) } } - diff --git a/core/lib/src/catcher/catcher.rs b/core/lib/src/catcher/catcher.rs index 90b45f21..95c86b63 100644 --- a/core/lib/src/catcher/catcher.rs +++ b/core/lib/src/catcher/catcher.rs @@ -414,4 +414,3 @@ default_handler_fn! { 510, "Not Extended", "Further extensions to the request are required for \ the server to fulfill it." } - diff --git a/core/lib/src/form/name/key.rs b/core/lib/src/form/name/key.rs index 15db6cb2..ed7c0f15 100644 --- a/core/lib/src/form/name/key.rs +++ b/core/lib/src/form/name/key.rs @@ -144,4 +144,3 @@ impl std::fmt::Display for Key { self.0.fmt(f) } } - diff --git a/core/lib/src/form/name/name.rs b/core/lib/src/form/name/name.rs index af9570ff..75ae4c49 100644 --- a/core/lib/src/form/name/name.rs +++ b/core/lib/src/form/name/name.rs @@ -235,4 +235,3 @@ impl std::fmt::Debug for Name { self.0.fmt(f) } } - diff --git a/scripts/test.sh b/scripts/test.sh index 18735c5d..179d3921 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -56,6 +56,14 @@ function check_style() { echo "${matches}" exit 1 fi + + local pattern='tail -n 1 % | grep -q "^$" && echo %' + local matches=$(git grep -z -Il '' | xargs -0 -P 16 -I % sh -c "${pattern}") + if ! [ -z "${matches}" ]; then + echo "Trailing new line(s) found in the following:" + echo "${matches}" + exit 1 + fi } function indir() {