From effa4c76526ec049a11cc62540a338d425a03592 Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Thu, 5 Sep 2024 10:30:12 +1000 Subject: [PATCH] chore: Update deprecation message on in-mem support loggin functions in pact_matching crate --- rust/pact_matching/src/logging.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/pact_matching/src/logging.rs b/rust/pact_matching/src/logging.rs index 818b72ff..eb0e6f69 100644 --- a/rust/pact_matching/src/logging.rs +++ b/rust/pact_matching/src/logging.rs @@ -17,7 +17,7 @@ lazy_static! { /// Accumulates the log entries against a task local ID. If the ID is not set, accumulates against /// the "global" ID. /// cbindgen:ignore - #[deprecated(note = "This must be moved to the FFI crate")] + #[deprecated(note = "Do not use this, it has been moved to the FFI crate")] static ref LOG_BUFFER: Mutex> = Mutex::new(HashMap::new()); } @@ -29,7 +29,7 @@ task_local! { } /// Fetches the contents from the id scoped in-memory buffer and empties the buffer. -#[deprecated(note = "This must be moved to the FFI crate")] +#[deprecated(note = "Do not use this function, it has been moved to the FFI crate")] pub fn fetch_buffer_contents(id: &str) -> Bytes { let mut inner = LOG_BUFFER.lock().unwrap(); let buffer = inner.entry(id.to_string()) @@ -39,7 +39,7 @@ pub fn fetch_buffer_contents(id: &str) -> Bytes { /// Writes the provided bytes to the task local ID scoped in-memory buffer. If there is no /// task local ID set, will write to the "global" buffer. -#[deprecated(note = "This must be moved to the FFI crate")] +#[deprecated(note = "Do not use this function, it has been moved to the FFI crate")] pub fn write_to_log_buffer(buf: &[u8]) { let id = LOG_ID.try_with(|id| id.clone()).unwrap_or_else(|_| "global".into()); let mut inner = LOG_BUFFER.lock().unwrap();