From f5e8ab8e5586acd607b915f1d69975b8aad4e02f Mon Sep 17 00:00:00 2001 From: Schneems Date: Thu, 19 Dec 2024 09:53:30 -0600 Subject: [PATCH] Remove unused `since` versions --- commons/src/layer.rs | 10 ++-------- commons/src/output/build_log.rs | 2 +- commons/src/output/fmt.rs | 12 ++++++------ commons/src/output/section_log.rs | 14 +++++++------- 4 files changed, 16 insertions(+), 22 deletions(-) diff --git a/commons/src/layer.rs b/commons/src/layer.rs index d28d672b..5edf280c 100644 --- a/commons/src/layer.rs +++ b/commons/src/layer.rs @@ -2,14 +2,8 @@ pub mod cache_buddy; mod configure_env_layer; mod default_env_layer; -#[deprecated( - since = "0.0.0", - note = "Use the struct layer API in the latest libcnb.rs instead" -)] +#[deprecated(note = "Use the struct layer API in the latest libcnb.rs instead")] pub use self::configure_env_layer::ConfigureEnvLayer; -#[deprecated( - since = "0.0.0", - note = "Use the struct layer API in the latest libcnb.rs instead" -)] +#[deprecated(note = "Use the struct layer API in the latest libcnb.rs instead")] pub use self::default_env_layer::DefaultEnvLayer; diff --git a/commons/src/output/build_log.rs b/commons/src/output/build_log.rs index d22e9a4e..888d0920 100644 --- a/commons/src/output/build_log.rs +++ b/commons/src/output/build_log.rs @@ -32,7 +32,7 @@ use std::time::{Duration, Instant}; /// To log inside of a layer see [`section_log`]. #[derive(Debug)] -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub struct BuildLog { pub(crate) io: W, pub(crate) data: BuildData, diff --git a/commons/src/output/fmt.rs b/commons/src/output/fmt.rs index f5f27037..3f73cd9d 100644 --- a/commons/src/output/fmt.rs +++ b/commons/src/output/fmt.rs @@ -4,30 +4,30 @@ use const_format::formatcp; use std::fmt::Write; /// Decorated str for prefixing "Help:" -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub const HELP: &str = formatcp!("{IMPORTANT_COLOR}! HELP{RESET}"); /// Decorated str for prefixing "Debug info:" -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub const DEBUG_INFO: &str = formatcp!("{IMPORTANT_COLOR}Debug info{RESET}"); /// Decorate a URL for the build output #[must_use] -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub fn url(contents: impl AsRef) -> String { colorize(URL_COLOR, contents) } /// Decorate the name of a command being run i.e. `bundle install` #[must_use] -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub fn command(contents: impl AsRef) -> String { value(colorize(COMMAND_COLOR, contents.as_ref())) } /// Decorate an important value i.e. `2.3.4` #[must_use] -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub fn value(contents: impl AsRef) -> String { let contents = colorize(VALUE_COLOR, contents.as_ref()); format!("`{contents}`") @@ -35,7 +35,7 @@ pub fn value(contents: impl AsRef) -> String { /// Decorate additional information at the end of a line #[must_use] -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub fn details(contents: impl AsRef) -> String { let contents = contents.as_ref(); format!("({contents})") diff --git a/commons/src/output/section_log.rs b/commons/src/output/section_log.rs index 44883426..0ecdfc13 100644 --- a/commons/src/output/section_log.rs +++ b/commons/src/output/section_log.rs @@ -45,7 +45,7 @@ use std::marker::PhantomData; /// /// log_step("Clearing cache (ruby version changed)"); /// ``` -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub fn log_step(s: impl AsRef) { logger().step(s.as_ref()); } @@ -62,7 +62,7 @@ pub fn log_step(s: impl AsRef) { /// ``` /// /// Timing information will be output at the end of the step. -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub fn log_step_timed(s: impl AsRef, f: impl FnOnce() -> T) -> T { let timer = logger().step_timed(s.as_ref()); let out = f(); @@ -70,7 +70,7 @@ pub fn log_step_timed(s: impl AsRef, f: impl FnOnce() -> T) -> T { out } -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub fn log_step_stream( s: impl AsRef, f: impl FnOnce(&mut Box) -> T, @@ -82,25 +82,25 @@ pub fn log_step_stream( } /// Print an error block to the output -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub fn log_error(s: impl AsRef) { logger().announce().error(s.as_ref()); } /// Print an warning block to the output -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub fn log_warning(s: impl AsRef) { logger().announce().warning(s.as_ref()); } /// Print an warning block to the output at a later time -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub fn log_warning_later(s: impl AsRef) { logger().announce().warn_later(s.as_ref()); } /// Print an important block to the output -#[deprecated(since = "0.0.0", note = "Use `bullet_stream` instead")] +#[deprecated(note = "Use `bullet_stream` instead")] pub fn log_important(s: impl AsRef) { logger().announce().important(s.as_ref()); }