Remove unnecessary MSRVs from patches/

This commit is contained in:
Luke Parker
2025-11-25 16:59:12 -05:00
parent 028ec3cce0
commit 8d8e8a7a77
5 changed files with 5 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ repository = "https://github.com/serai-dex/serai/tree/develop/patches/option-ext
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
keywords = []
edition = "2021"
rust-version = "1.56"
[package.metadata.docs.rs]
all-features = true

View File

@@ -1,8 +1,8 @@
pub trait OptionExt<T: PartialEq> {
fn contains(&self, x: &T) -> bool;
pub trait OptionExt<T> {
fn contains(&self, x: &T) -> bool where T: PartialEq;
}
impl<T: PartialEq> OptionExt<T> for Option<T> {
fn contains(&self, x: &T) -> bool {
impl<T> OptionExt<T> for Option<T> {
fn contains(&self, x: &T) -> bool where T: PartialEq {
self.as_ref() == Some(x)
}
}