From eb555c28cca0dbd6a6cafda96fb96d7c4a903abf Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 18 Jan 2022 13:23:10 +0100 Subject: [PATCH] chore(solc): add ord derive (#807) --- ethers-solc/src/remappings.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethers-solc/src/remappings.rs b/ethers-solc/src/remappings.rs index 576d3fbd..ede372fd 100644 --- a/ethers-solc/src/remappings.rs +++ b/ethers-solc/src/remappings.rs @@ -193,7 +193,7 @@ impl Remapping { /// A relative [`Remapping`] that's aware of the current location /// /// See [`RelativeRemappingPathBuf`] -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq, PartialOrd, Eq, Ord)] pub struct RelativeRemapping { pub name: String, pub path: RelativeRemappingPathBuf, @@ -242,7 +242,7 @@ impl From for RelativeRemapping { /// to be relative to the configuration file itself. For example, a path of /// `weird-erc20/=lib/weird-erc20/src/` configured in a file `/var/foundry.toml` might be desired to /// resolve as a `weird-erc20/=/var/lib/weird-erc20/src/` remapping. -#[derive(Debug, Clone, PartialEq)] +#[derive(Clone, Debug, PartialEq, PartialOrd, Eq, Ord)] pub struct RelativeRemappingPathBuf { parent: Option, path: PathBuf,