From 50af97c60522281e814e34537e82e0d59289fd84 Mon Sep 17 00:00:00 2001 From: mcmah309 Date: Wed, 18 Sep 2024 08:00:04 +0000 Subject: [PATCH] doc: Update --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0fd8324..8f12fd9 100644 --- a/README.md +++ b/README.md @@ -540,7 +540,8 @@ let value: Option<()> = result.consume_info(); // If `Err`, the `Err` is logged let value: Option<()> = result.consume_with_trace(|err| format!("If `Err`, this message is logged as trace via tracing/log/defmt: {}", err)); ``` > Note: a `context_stub` feature flag also exists to be used by libraries. This allows the api's to be used in libraries -> while a downstream binrary can ultimately decide the implementation. +> while a downstream binrary can ultimately decide the implementation. If no implementations is selected, since all the above +> methods are inlined, the code will be optimized away during compilation. ### Why Choose `error_set` Over `thiserror` or `anyhow`