Skip to content

Commit

Permalink
Upgrade Rust 1.75.0 nightly (#4018)
Browse files Browse the repository at this point in the history
* upgrade rust to 1.75.0 nightly - 2023-11-0
* Update sgx/compat/src/lib.rs
---------

Co-authored-by: Nick Santana <[email protected]>
  • Loading branch information
jgreat and nick-mobilecoin authored Dec 11, 2024
1 parent a3f2259 commit ca96834
Show file tree
Hide file tree
Showing 40 changed files with 124 additions and 162 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/src/convert/amount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ mod tests {
let amount = Amount::new(10000, TokenId::from(10));

let external_amount: external::Amount = (&amount).into();
let recovered_amount: Amount = (&external_amount).try_into().unwrap();
let recovered_amount: Amount = (&external_amount).into();

assert_eq!(amount, recovered_amount);
}
Expand Down
4 changes: 2 additions & 2 deletions api/src/convert/block_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ impl TryFrom<&blockchain::BlockMetadataContents> for BlockMetadataContents {
let quorum_set = src.get_quorum_set().try_into()?;
let attestation_evidence = match &src.attestation_evidence {
Some(BlockMetadataContents_oneof_attestation_evidence::dcap_evidence(evidence)) => {
let evidence = evidence.try_into()?;
let evidence = evidence.into();
AttestationEvidence::DcapEvidence(evidence)
}
Some(BlockMetadataContents_oneof_attestation_evidence::verification_report(report)) => {
let report = report.try_into()?;
let report = report.into();
AttestationEvidence::VerificationReport(report)
}
None => {
Expand Down
2 changes: 1 addition & 1 deletion api/src/convert/dcap_evidence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl TryFrom<&DcapEvidence> for external::DcapEvidence {
impl TryFrom<&external::DcapEvidence> for DcapEvidence {
type Error = ConversionError;
fn try_from(src: &external::DcapEvidence) -> Result<Self, Self::Error> {
let prost = prost::DcapEvidence::try_from(src)?;
let prost = prost::DcapEvidence::from(src);
Ok((&prost).try_into()?)
}
}
Expand Down
5 changes: 1 addition & 4 deletions api/src/convert/output_secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ impl TryFrom<&external::OutputSecret> for OutputSecret {

fn try_from(source: &external::OutputSecret) -> Result<Self, Self::Error> {
Ok(OutputSecret {
amount: source
.get_amount()
.try_into()
.map_err(|_| ConversionError::KeyCastError)?,
amount: source.get_amount().into(),
blinding: source.get_blinding().try_into()?,
})
}
Expand Down
Loading

0 comments on commit ca96834

Please sign in to comment.