Skip to content

Commit 2be52cf

Browse files
committed
chore: relax trait bounds for VersionedContract
1 parent 5b2c964 commit 2be52cf

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

crates/compilers/src/compile/output/contracts.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@ use std::{
1313
/// file -> [(contract name -> Contract + solc version)]
1414
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
1515
#[serde(transparent)]
16-
pub struct VersionedContracts<C: CompilerContract>(
17-
pub FileToContractsMap<Vec<VersionedContract<C>>>,
18-
);
16+
pub struct VersionedContracts<C>(pub FileToContractsMap<Vec<VersionedContract<C>>>);
1917

20-
impl<C> Default for VersionedContracts<C>
21-
where
22-
C: CompilerContract,
23-
{
18+
impl<C> Default for VersionedContracts<C> {
2419
fn default() -> Self {
2520
Self(BTreeMap::new())
2621
}
@@ -284,7 +279,7 @@ where
284279

285280
/// A contract and the compiler version used to compile it
286281
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
287-
pub struct VersionedContract<C: CompilerContract> {
282+
pub struct VersionedContract<C> {
288283
pub contract: C,
289284
pub version: Version,
290285
pub build_id: String,

0 commit comments

Comments
 (0)