From 8a4df5d4e2d3a5a9702de15d6af34a8193896a45 Mon Sep 17 00:00:00 2001 From: "Lan, Jian" Date: Fri, 30 Jan 2026 18:09:23 +0800 Subject: [PATCH] feat: remove `Sized` bound from `Patchable` trait This allows `Patchable` to be implemented for unsized types (DSTs). The original `Sized` requirement was based on a misunderstanding of how the `From` trait works, which does not strictly require `Sized` for all use cases. --- patchable/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchable/src/lib.rs b/patchable/src/lib.rs index 970f0c5..7e0788b 100644 --- a/patchable/src/lib.rs +++ b/patchable/src/lib.rs @@ -88,7 +88,7 @@ pub use patchable_macro::{Patch, Patchable, patchable_model}; /// assert_eq!(accumulator.accumulated, 15u32); /// ``` /// Declares the associated patch type. -pub trait Patchable: Sized { +pub trait Patchable { /// The type of patch associated with this structure. type Patch; }