Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
modify BuildError variants when no need to return a string
Browse files Browse the repository at this point in the history
  • Loading branch information
AronisAt79 committed Nov 10, 2023
1 parent 43ee65c commit d80a1b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions integration-tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ enum BuildError {
errors: Vec<SolcArtifactError>,
},
/// Vec<CompilerInput> is empty
#[error("ArtifactError({0:})")]
ArtifactError(String),
#[error("ArtifactError")]
ArtifactError,
/// Functon compile_output failed to encode CompilerInput to Vec<u8>
#[error("CompileOutputFailure({0:})")]
CompileOutputFailure(String),
/// Could not convert Vec<u8> to CompilerOutput
#[error("CompilerOutputDeSerError({0:})")]
CompilerOutputDeSerError(String),
/// Failed loading Abi from CompactContractRef
#[error("ErrorLoadingContractAbi({0:})")]
ErrorLoadingContractAbi(String),
#[error("ErrorLoadingContractAbi")]
ErrorLoadingContractAbi,
/// Failed loading Bin from CompactContractRef
#[error("ErrorLoadingContractBin({0:})")]
ErrorLoadingContractBin(String),
Expand All @@ -61,8 +61,8 @@ enum BuildError {
#[error("StringConversionError({0:})")]
StringConversionError(String),
/// Failed to create CompactContractRef from path + name
#[error("FailedToLoadCompactContractRef({0:})")]
FailedToLoadCompactContractRef(String),
#[error("FailedToLoadCompactContractRef")]
FailedToLoadCompactContractRef,
/// Failed Bytecode to Bytes conversion
#[error("ByteCodeToBytesError({0:})")]
ByteCodeToBytesError(String),
Expand Down

0 comments on commit d80a1b4

Please sign in to comment.