File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " pymath"
3- version = " 0.0.1 "
3+ version = " 0.0.2 "
44edition = " 2024"
55description = " A binary representation compatible Rust implementation of Python's math library."
66license = " PSF-2.0"
@@ -16,7 +16,6 @@ license = "PSF-2.0"
1616mul_add = []
1717
1818[dependencies ]
19- errno = " 0.3"
2019libc = " 0.2"
2120
2221[dev-dependencies ]
Original file line number Diff line number Diff line change 1+ use std:: ffi:: c_int;
2+
13// The values are defined in libc
24#[ derive( Debug , PartialEq , Eq ) ]
35pub enum Error {
@@ -7,10 +9,10 @@ pub enum Error {
79
810pub type Result < T > = std:: result:: Result < T , Error > ;
911
10- impl TryFrom < libc :: c_int > for Error {
11- type Error = libc :: c_int ;
12+ impl TryFrom < c_int > for Error {
13+ type Error = c_int ;
1214
13- fn try_from ( value : libc :: c_int ) -> std:: result:: Result < Self , Self :: Error > {
15+ fn try_from ( value : c_int ) -> std:: result:: Result < Self , Self :: Error > {
1416 match value {
1517 33 => Ok ( Error :: EDOM ) ,
1618 34 => Ok ( Error :: ERANGE ) ,
You can’t perform that action at this time.
0 commit comments