From 02f377cbb2363673152c69bc1e73d02ca94ff045 Mon Sep 17 00:00:00 2001 From: Lynnesbian Date: Mon, 14 Jun 2021 18:27:50 +1000 Subject: [PATCH] =?UTF-8?q?release=20v0.3.2=20=F0=9F=A5=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++-- Cargo.lock | 2 +- Cargo.toml | 2 +- clippy.sh | 34 +++++++++++++++++++--------------- 4 files changed, 23 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96b8d26..2de9168 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ Dates are given in YYYY-MM-DD format. ## v0.3 -### v0.3.2 (2021-mm-dd) +### v0.3.2 (2021-06-14) #### Bugfixes - Fixed PowerShell output regression introduced in v0.2.13, whoops #### Other @@ -12,7 +12,7 @@ Dates are given in YYYY-MM-DD format. - Block compilation if both the `xdg-mime-backend` and `infer-backend` [features](https://gitlab.com/Lynnesbian/fif/-/wikis/Cargo-Features) are enabled -### v0.3.1 (2021-07-06) +### v0.3.1 (2021-06-07) #### Features - Added JSON output support via `-o json` - Added plaintext output support via `-o text` diff --git a/Cargo.lock b/Cargo.lock index a5513e9..02011fb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -183,7 +183,7 @@ checksum = "de853764b47027c2e862a995c34978ffa63c1501f2e15f987ba11bd4f9bba193" [[package]] name = "fif" -version = "0.3.1" +version = "0.3.2" dependencies = [ "cached", "cfg-if", diff --git a/Cargo.toml b/Cargo.toml index 796ff0b..bbf01b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "fif" description = "A command-line tool for detecting and optionally correcting files with incorrect extensions." -version = "0.3.1" +version = "0.3.2" authors = ["Lynnesbian "] edition = "2018" license = "GPL-3.0-or-later" diff --git a/clippy.sh b/clippy.sh index 93ac6bf..99c3401 100755 --- a/clippy.sh +++ b/clippy.sh @@ -13,21 +13,25 @@ fi # allow find to fail find . -name '*.rs' -exec touch "{}" \; || true -cargo $_ver clippy --all-features --tests -- \ - -W clippy::nursery \ - -W clippy::perf \ - -W clippy::pedantic \ - -W clippy::complexity \ - -W clippy::cargo \ - -W clippy::float_cmp_const \ - -W clippy::lossy_float_literal \ - -W clippy::multiple_inherent_impl \ - -W clippy::string_to_string \ - -A clippy::unused_io_amount \ - -A clippy::redundant_closure_for_method_calls \ - -A clippy::shadow_unrelated \ - -A clippy::option_if_let_else \ - "$_extra" +_backends=( "xdg-mime-backend" "infer-backend" ) + +for backend in "${_backends[@]}"; do + cargo $_ver clippy --tests --features="$backend" -- \ + -W clippy::nursery \ + -W clippy::perf \ + -W clippy::pedantic \ + -W clippy::complexity \ + -W clippy::cargo \ + -W clippy::float_cmp_const \ + -W clippy::lossy_float_literal \ + -W clippy::multiple_inherent_impl \ + -W clippy::string_to_string \ + -A clippy::unused_io_amount \ + -A clippy::redundant_closure_for_method_calls \ + -A clippy::shadow_unrelated \ + -A clippy::option_if_let_else \ + "$_extra" +done # ALLOWS: # unused_io_amount: there are two places where i want to read up to X bytes and i'm fine with getting less than that