diff --git a/patches/dalek-ff-group/Cargo.toml b/patches/dalek-ff-group/Cargo.toml index 5286516c..1072431e 100644 --- a/patches/dalek-ff-group/Cargo.toml +++ b/patches/dalek-ff-group/Cargo.toml @@ -7,7 +7,6 @@ repository = "https://github.com/serai-dex/serai/tree/develop/crypto/dalek-ff-gr authors = ["Luke Parker "] keywords = ["curve25519", "ed25519", "ristretto", "dalek", "group"] edition = "2021" -rust-version = "1.85" [package.metadata.docs.rs] all-features = true diff --git a/patches/option-ext/Cargo.toml b/patches/option-ext/Cargo.toml index c8aee6d4..bd6635eb 100644 --- a/patches/option-ext/Cargo.toml +++ b/patches/option-ext/Cargo.toml @@ -7,6 +7,7 @@ repository = "https://github.com/serai-dex/serai/tree/develop/patches/option-ext authors = ["Luke Parker "] keywords = [] edition = "2021" +rust-version = "1.56" [package.metadata.docs.rs] all-features = true diff --git a/patches/option-ext/src/lib.rs b/patches/option-ext/src/lib.rs index b075111c..ec274702 100644 --- a/patches/option-ext/src/lib.rs +++ b/patches/option-ext/src/lib.rs @@ -1,8 +1,8 @@ -pub trait OptionExt { - fn contains(&self, x: &T) -> bool; +pub trait OptionExt { + fn contains(&self, x: &T) -> bool where T: PartialEq; } -impl OptionExt for Option { - fn contains(&self, x: &T) -> bool { +impl OptionExt for Option { + fn contains(&self, x: &T) -> bool where T: PartialEq { self.as_ref() == Some(x) } } diff --git a/patches/simple-request/Cargo.toml b/patches/simple-request/Cargo.toml index cb49cf4f..acbae0a0 100644 --- a/patches/simple-request/Cargo.toml +++ b/patches/simple-request/Cargo.toml @@ -7,7 +7,6 @@ repository = "https://github.com/serai-dex/serai/tree/develop/patches/simple-req authors = ["Luke Parker "] keywords = ["nostd", "no_std", "alloc", "io"] edition = "2021" -rust-version = "1.65" [package.metadata.docs.rs] all-features = true diff --git a/patches/std-shims/Cargo.toml b/patches/std-shims/Cargo.toml index ca2a63ac..159cd5d6 100644 --- a/patches/std-shims/Cargo.toml +++ b/patches/std-shims/Cargo.toml @@ -7,7 +7,6 @@ repository = "https://github.com/serai-dex/serai/tree/develop/patches/std-shims" authors = ["Luke Parker "] keywords = ["nostd", "no_std", "alloc", "io"] edition = "2021" -rust-version = "1.65" [package.metadata.docs.rs] all-features = true