Skip to content

Commit 91fb343

Browse files
author
bitfl0wer
committed
Remove overly "agressive" proc-macro derive impl
1 parent 0e1cc19 commit 91fb343

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

sqlx-pg-uint-macros/src/lib.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,6 @@ pub fn uint_wrapper_derive(input: TokenStream) -> TokenStream {
8888
}
8989
}
9090

91-
impl From<<#name as UIntType>::Uint> for #name {
92-
fn from(value: <#name as UIntType>::Uint) -> Self {
93-
Self {
94-
inner: BigDecimal::from(value),
95-
}
96-
}
97-
}
98-
99-
// TODO: This trait bound must be tightened as far as possible. This blanket implementation
100-
// conflicts with other blanket implementations.
101-
102-
impl From<#name> for <#name as UIntType>::Uint {
103-
fn from(value: #name) -> Self {
104-
value.to_uint()
105-
}
106-
}
107-
10891
impl std::str::FromStr for #name {
10992
type Err = Error;
11093

0 commit comments

Comments
 (0)