Skip to content

Commit

Permalink
Reformat source code
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Nov 2, 2024
1 parent a5b0180 commit 1409916
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions crates/core/src/collection/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,12 @@ pub enum Authentication<T = Template> {
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 {
Expand Down
4 changes: 2 additions & 2 deletions crates/tui/src/view/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 1409916

Please sign in to comment.