From c15707090800827ae411edbfa0301f9c35f5aa3f Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Thu, 24 Aug 2023 11:00:13 -0700 Subject: [PATCH 1/3] lint --- fyi_msg/src/progress/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fyi_msg/src/progress/mod.rs b/fyi_msg/src/progress/mod.rs index 9b0ff27..d6fd7d4 100644 --- a/fyi_msg/src/progress/mod.rs +++ b/fyi_msg/src/progress/mod.rs @@ -70,7 +70,7 @@ macro_rules! mutex { ($m:expr) => ($m.lock().unwrap_or_else(std::sync::PoisonError::into_inner)); } -pub(self) use mutex; +use mutex; @@ -453,6 +453,7 @@ impl ProglessInner { /// # Render. impl ProglessInner { + #[allow(clippy::significant_drop_tightening)] /// # Preprint. /// /// This method accepts a completed buffer ready for printing, hashing it @@ -680,6 +681,7 @@ impl ProglessInner { let mut tasks = Vec::::with_capacity(256); tasks.extend_from_slice(b"\x1b[35m"); doing.iter().for_each(|x| x.push_to(&mut tasks, width)); + drop(doing); // Release the lock a few ns early. tasks.extend_from_slice(b"\x1b[0m"); mutex!(self.buf).replace(PART_DOING, &tasks); From b05d06add919ed731da5f8d47d482ba521a0cd5e Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Thu, 24 Aug 2023 11:00:29 -0700 Subject: [PATCH 2/3] bump: 0.11.2 --- fyi/Cargo.toml | 2 +- fyi_msg/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fyi/Cargo.toml b/fyi/Cargo.toml index f2dbcc9..dc78563 100644 --- a/fyi/Cargo.toml +++ b/fyi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fyi" -version = "0.11.1" +version = "0.11.2" license = "WTFPL" authors = ["Blobfolio, LLC. "] edition = "2021" diff --git a/fyi_msg/Cargo.toml b/fyi_msg/Cargo.toml index fd1952e..20f3661 100644 --- a/fyi_msg/Cargo.toml +++ b/fyi_msg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fyi_msg" -version = "0.11.1" +version = "0.11.2" authors = ["Blobfolio, LLC. "] edition = "2021" rust-version = "1.70" From 2e4924eb050bf369854b87b804d625bcf1d71d77 Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Thu, 24 Aug 2023 11:00:57 -0700 Subject: [PATCH 3/3] build: 0.11.2 --- CREDITS.md | 8 ++++---- release/man/fyi-blank.1 | 4 ++-- release/man/fyi-confirm.1 | 4 ++-- release/man/fyi-crunched.1 | 4 ++-- release/man/fyi-debug.1 | 4 ++-- release/man/fyi-done.1 | 4 ++-- release/man/fyi-error.1 | 4 ++-- release/man/fyi-info.1 | 4 ++-- release/man/fyi-notice.1 | 4 ++-- release/man/fyi-print.1 | 4 ++-- release/man/fyi-review.1 | 4 ++-- release/man/fyi-success.1 | 4 ++-- release/man/fyi-task.1 | 4 ++-- release/man/fyi-warning.1 | 4 ++-- release/man/fyi.1 | 4 ++-- 15 files changed, 32 insertions(+), 32 deletions(-) diff --git a/CREDITS.md b/CREDITS.md index 77391ca..3ed3b35 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -1,14 +1,14 @@ # Project Dependencies Package: fyi - Version: 0.11.1 - Generated: 2023-07-13 19:39:59 UTC + Version: 0.11.2 + Generated: 2023-08-24 18:00:37 UTC | Package | Version | Author(s) | License | | ---- | ---- | ---- | ---- | | [argyle](https://github.com/Blobfolio/argyle) | 0.6.8 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | | [const_fn](https://github.com/taiki-e/const_fn) | 0.4.9 | | Apache-2.0 or MIT | | [dactyl](https://github.com/Blobfolio/dactyl) | 0.5.1 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | -| [fyi_msg](https://github.com/Blobfolio/fyi) | 0.11.1 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | -| [num-traits](https://github.com/rust-num/num-traits) | 0.2.15 | The Rust Project Developers | Apache-2.0 or MIT | +| [fyi_msg](https://github.com/Blobfolio/fyi) | 0.11.2 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | +| [num-traits](https://github.com/rust-num/num-traits) | 0.2.16 | The Rust Project Developers | Apache-2.0 or MIT | | [tz-rs](https://github.com/x-hgg-x/tz-rs) | 0.6.14 | x-hgg-x | Apache-2.0 or MIT | | [utc2k](https://github.com/Blobfolio/utc2k) | 0.6.1 | [Blobfolio, LLC.](mailto:hello@blobfolio.com) | WTFPL | diff --git a/release/man/fyi-blank.1 b/release/man/fyi-blank.1 index b8963b9..5546d49 100644 --- a/release/man/fyi-blank.1 +++ b/release/man/fyi-blank.1 @@ -1,6 +1,6 @@ -.TH "FYI BLANK" "1" "July 2023" "blank v0.11.1" "User Commands" +.TH "FYI BLANK" "1" "August 2023" "blank v0.11.2" "User Commands" .SH NAME -blank \- Manual page for blank v0.11.1. +blank \- Manual page for blank v0.11.2. .SH DESCRIPTION Print blank line(s). .SS USAGE: diff --git a/release/man/fyi-confirm.1 b/release/man/fyi-confirm.1 index 88664cf..9a5402d 100644 --- a/release/man/fyi-confirm.1 +++ b/release/man/fyi-confirm.1 @@ -1,6 +1,6 @@ -.TH "FYI CONFIRM" "1" "July 2023" "confirm v0.11.1" "User Commands" +.TH "FYI CONFIRM" "1" "August 2023" "confirm v0.11.2" "User Commands" .SH NAME -confirm \- Manual page for confirm v0.11.1. +confirm \- Manual page for confirm v0.11.2. .SH DESCRIPTION Ask a Yes/No question using the built\-in prefix "confirm". .SS USAGE: diff --git a/release/man/fyi-crunched.1 b/release/man/fyi-crunched.1 index cffb0a9..4f0e828 100644 --- a/release/man/fyi-crunched.1 +++ b/release/man/fyi-crunched.1 @@ -1,6 +1,6 @@ -.TH "FYI CRUNCHED" "1" "July 2023" "crunched v0.11.1" "User Commands" +.TH "FYI CRUNCHED" "1" "August 2023" "crunched v0.11.2" "User Commands" .SH NAME -crunched \- Manual page for crunched v0.11.1. +crunched \- Manual page for crunched v0.11.2. .SH DESCRIPTION Crunched: Hello World .SS USAGE: diff --git a/release/man/fyi-debug.1 b/release/man/fyi-debug.1 index 7994b8f..b9a11c0 100644 --- a/release/man/fyi-debug.1 +++ b/release/man/fyi-debug.1 @@ -1,6 +1,6 @@ -.TH "FYI DEBUG" "1" "July 2023" "debug v0.11.1" "User Commands" +.TH "FYI DEBUG" "1" "August 2023" "debug v0.11.2" "User Commands" .SH NAME -debug \- Manual page for debug v0.11.1. +debug \- Manual page for debug v0.11.2. .SH DESCRIPTION Debug: Hello World .SS USAGE: diff --git a/release/man/fyi-done.1 b/release/man/fyi-done.1 index 264d40a..a19c46e 100644 --- a/release/man/fyi-done.1 +++ b/release/man/fyi-done.1 @@ -1,6 +1,6 @@ -.TH "FYI DONE" "1" "July 2023" "done v0.11.1" "User Commands" +.TH "FYI DONE" "1" "August 2023" "done v0.11.2" "User Commands" .SH NAME -done \- Manual page for done v0.11.1. +done \- Manual page for done v0.11.2. .SH DESCRIPTION Done: Hello World .SS USAGE: diff --git a/release/man/fyi-error.1 b/release/man/fyi-error.1 index 8468dac..dc17525 100644 --- a/release/man/fyi-error.1 +++ b/release/man/fyi-error.1 @@ -1,6 +1,6 @@ -.TH "FYI ERROR" "1" "July 2023" "error v0.11.1" "User Commands" +.TH "FYI ERROR" "1" "August 2023" "error v0.11.2" "User Commands" .SH NAME -error \- Manual page for error v0.11.1. +error \- Manual page for error v0.11.2. .SH DESCRIPTION Error: Hello World .SS USAGE: diff --git a/release/man/fyi-info.1 b/release/man/fyi-info.1 index be70fbd..6883fa1 100644 --- a/release/man/fyi-info.1 +++ b/release/man/fyi-info.1 @@ -1,6 +1,6 @@ -.TH "FYI INFO" "1" "July 2023" "info v0.11.1" "User Commands" +.TH "FYI INFO" "1" "August 2023" "info v0.11.2" "User Commands" .SH NAME -info \- Manual page for info v0.11.1. +info \- Manual page for info v0.11.2. .SH DESCRIPTION Info: Hello World .SS USAGE: diff --git a/release/man/fyi-notice.1 b/release/man/fyi-notice.1 index 658edd7..3c0309c 100644 --- a/release/man/fyi-notice.1 +++ b/release/man/fyi-notice.1 @@ -1,6 +1,6 @@ -.TH "FYI NOTICE" "1" "July 2023" "notice v0.11.1" "User Commands" +.TH "FYI NOTICE" "1" "August 2023" "notice v0.11.2" "User Commands" .SH NAME -notice \- Manual page for notice v0.11.1. +notice \- Manual page for notice v0.11.2. .SH DESCRIPTION Notice: Hello World .SS USAGE: diff --git a/release/man/fyi-print.1 b/release/man/fyi-print.1 index cd5c313..92025c0 100644 --- a/release/man/fyi-print.1 +++ b/release/man/fyi-print.1 @@ -1,6 +1,6 @@ -.TH "FYI PRINT" "1" "July 2023" "print v0.11.1" "User Commands" +.TH "FYI PRINT" "1" "August 2023" "print v0.11.2" "User Commands" .SH NAME -print \- Manual page for print v0.11.1. +print \- Manual page for print v0.11.2. .SH DESCRIPTION Print a message without a prefix (or with a custom one). .SS USAGE: diff --git a/release/man/fyi-review.1 b/release/man/fyi-review.1 index 644fd21..31ef169 100644 --- a/release/man/fyi-review.1 +++ b/release/man/fyi-review.1 @@ -1,6 +1,6 @@ -.TH "FYI REVIEW" "1" "July 2023" "review v0.11.1" "User Commands" +.TH "FYI REVIEW" "1" "August 2023" "review v0.11.2" "User Commands" .SH NAME -review \- Manual page for review v0.11.1. +review \- Manual page for review v0.11.2. .SH DESCRIPTION Review: Hello World .SS USAGE: diff --git a/release/man/fyi-success.1 b/release/man/fyi-success.1 index 1be65aa..f0ba725 100644 --- a/release/man/fyi-success.1 +++ b/release/man/fyi-success.1 @@ -1,6 +1,6 @@ -.TH "FYI SUCCESS" "1" "July 2023" "success v0.11.1" "User Commands" +.TH "FYI SUCCESS" "1" "August 2023" "success v0.11.2" "User Commands" .SH NAME -success \- Manual page for success v0.11.1. +success \- Manual page for success v0.11.2. .SH DESCRIPTION Success: Hello World .SS USAGE: diff --git a/release/man/fyi-task.1 b/release/man/fyi-task.1 index b9b3bf9..9c00c80 100644 --- a/release/man/fyi-task.1 +++ b/release/man/fyi-task.1 @@ -1,6 +1,6 @@ -.TH "FYI TASK" "1" "July 2023" "task v0.11.1" "User Commands" +.TH "FYI TASK" "1" "August 2023" "task v0.11.2" "User Commands" .SH NAME -task \- Manual page for task v0.11.1. +task \- Manual page for task v0.11.2. .SH DESCRIPTION Task: Hello World .SS USAGE: diff --git a/release/man/fyi-warning.1 b/release/man/fyi-warning.1 index 5579793..0d1c0b2 100644 --- a/release/man/fyi-warning.1 +++ b/release/man/fyi-warning.1 @@ -1,6 +1,6 @@ -.TH "FYI WARNING" "1" "July 2023" "warning v0.11.1" "User Commands" +.TH "FYI WARNING" "1" "August 2023" "warning v0.11.2" "User Commands" .SH NAME -warning \- Manual page for warning v0.11.1. +warning \- Manual page for warning v0.11.2. .SH DESCRIPTION Warning: Hello World .SS USAGE: diff --git a/release/man/fyi.1 b/release/man/fyi.1 index f59584f..a52f6df 100644 --- a/release/man/fyi.1 +++ b/release/man/fyi.1 @@ -1,6 +1,6 @@ -.TH "FYI" "1" "July 2023" "FYI v0.11.1" "User Commands" +.TH "FYI" "1" "August 2023" "FYI v0.11.2" "User Commands" .SH NAME -FYI \- Manual page for fyi v0.11.1. +FYI \- Manual page for fyi v0.11.2. .SH DESCRIPTION A dead\-simple CLI status message printer for use in BASH scripts, etc. .SS USAGE: