Skip to content

Commit ad914c6

Browse files
committed
Clean up inline comments in registry and derive macro
1 parent aeb0b7a commit ad914c6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

error-forge-derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn implement_for_enum(input: &DeriveInput, error_prefix: &str) -> proc_macro2::T
204204
Self::#variant_name(#(#field_pattern_list)*) => format!("{}: {}", #error_prefix, format!(#display_format #(, #field_names)*))
205205
});
206206
} else {
207-
// Fall back to simple display if no formatting placeholders
207+
// Fallback: no field interpolation needed
208208
display_match_arms.push(quote! {
209209
Self::#variant_name(..) => format!("{}: {}", #error_prefix, #display_format)
210210
});

src/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl<E> CodedError<E> {
116116

117117
/// Set whether this error is retryable
118118
pub fn with_retryable(self, _retryable: bool) -> Self {
119-
// Simply return self for tests - implementation simplified
119+
// TODO: store retryable flag once the field is added
120120
self
121121
}
122122

0 commit comments

Comments
 (0)