Skip to content

Commit c288326

Browse files
authored
Merge pull request #193 from estie-inc/refactor/decode-error-redesign
refactor(decode)!: redesign decode errors with narrow result types
2 parents 796b32d + 4dbcaaf commit c288326

21 files changed

Lines changed: 1487 additions & 158 deletions

derive/src/codegen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ pub(crate) fn expand(model: &FromRowDerive) -> TokenStream2 {
2424

2525
fn build_plan(
2626
ctx: #crate_path::RowPlanContext<'_>,
27-
) -> #crate_path::Result<Self::Plan> {
27+
) -> #crate_path::decode::PlanBuildResult<Self::Plan> {
2828
::core::result::Result::Ok(( #(#plan_field_inits,)* ))
2929
}
3030

3131
fn from_row_with_plan(
3232
row: #crate_path::RowRef<'_>,
3333
plan: &Self::Plan,
34-
) -> #crate_path::Result<Self> {
34+
) -> #crate_path::decode::RowDecodeResult<Self> {
3535
#row_body
3636
}
3737
}

0 commit comments

Comments
 (0)