Skip to content

Commit 93a4918

Browse files
committed
Refactor combine_options method in DocumentSession for improved readability
- Reformatted the `combine_options` method signature in `DocumentSession` to enhance code clarity and maintainability. - No functional changes were made; the method's logic remains intact.
1 parent 69efebb commit 93a4918

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/documents.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,10 @@ impl DocumentSession {
667667
self.event_defaults = AppendOptions::default();
668668
}
669669

670-
pub(crate) fn combine_options(defaults: &AppendOptions, overrides: &AppendOptions) -> AppendOptions {
670+
pub(crate) fn combine_options(
671+
defaults: &AppendOptions,
672+
overrides: &AppendOptions,
673+
) -> AppendOptions {
671674
AppendOptions {
672675
headers: Self::merge_headers(&defaults.headers, &overrides.headers),
673676
causation_id: overrides.causation_id.or(defaults.causation_id),

0 commit comments

Comments
 (0)