Skip to content

Commit fea84bd

Browse files
authored
Implement TryFromBytes::try_{mut,ref}_from_{prefix,suffix} (#1072)
Makes progress towards #5
1 parent 1e35482 commit fea84bd

File tree

2 files changed

+536
-50
lines changed

2 files changed

+536
-50
lines changed

src/error.rs

-5
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,6 @@ impl<Src, Dst: ?Sized + TryFromBytes> ValidityError<Src, Dst> {
255255
self.src
256256
}
257257

258-
/// Sets the source value associated with the conversion error.
259-
pub(crate) fn with_src<NewSrc>(self, new_src: NewSrc) -> ValidityError<NewSrc, Dst> {
260-
ValidityError { src: new_src, dst: PhantomData }
261-
}
262-
263258
/// Maps the source value associated with the conversion error.
264259
pub(crate) fn map_src<NewSrc>(self, f: impl Fn(Src) -> NewSrc) -> ValidityError<NewSrc, Dst> {
265260
ValidityError { src: f(self.src), dst: PhantomData }

0 commit comments

Comments
 (0)