diff --git a/crates/core/src/collection/models.rs b/crates/core/src/collection/models.rs index 10a46c1b..48851b38 100644 --- a/crates/core/src/collection/models.rs +++ b/crates/core/src/collection/models.rs @@ -324,11 +324,12 @@ pub enum Authentication { Bearer(T), } -/// Template for a request body. `Raw` is the "default" variant, which represents -/// a single string (parsed as a template). Other variants can be used for -/// convenience, to construct complex bodies in common formats. The HTTP engine -/// uses the variant to determine not only how to serialize the body, but also -/// other parameters of the request (e.g. the `Content-Type` header). +/// Template for a request body. `Raw` is the "default" variant, which +/// represents a single string (parsed as a template). Other variants can be +/// used for convenience, to construct complex bodies in common formats. The +/// HTTP engine uses the variant to determine not only how to serialize the +/// body, but also other parameters of the request (e.g. the `Content-Type` +/// header). #[derive(Debug)] #[cfg_attr(any(test, feature = "test"), derive(PartialEq))] pub enum RecipeBody { diff --git a/crates/tui/src/view/event.rs b/crates/tui/src/view/event.rs index 5c30c0a5..f81833f2 100644 --- a/crates/tui/src/view/event.rs +++ b/crates/tui/src/view/event.rs @@ -23,8 +23,8 @@ use tracing::trace; pub trait EventHandler { /// Update the state of *just* this component according to the event. /// Returned outcome indicates whether the event was consumed, or it should - /// be propagated to our parent. Use [EventQueue] to queue subsequent events, - /// and the given message sender to queue async messages. + /// be propagated to our parent. Use [EventQueue] to queue subsequent + /// events, and the given message sender to queue async messages. fn update(&mut self, _: &mut UpdateContext, event: Event) -> Update { Update::Propagate(event) }