Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Jan 3, 2024
1 parent 89b8a61 commit 6818ab7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/crates/soroban-spec-tools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ impl Spec {
let val = self.from_json(v, &f.type_)?;
let key = StringM::from_str(name).unwrap();
Ok(ScMapEntry {
key: ScVal::Symbol(key.try_into()?),
key: ScVal::Symbol(key.into()),
val,
})
})
Expand Down Expand Up @@ -1135,7 +1135,7 @@ impl Spec {
match self.find(&name.to_utf8_string_lossy()).ok()? {
ScSpecEntry::UdtStructV0(ScSpecUdtStructV0 { fields, .. })
if fields
.get(0)
.first()
.map(|f| f.name.to_utf8_string_lossy() == "0")
.unwrap_or_default() =>
{
Expand Down
2 changes: 1 addition & 1 deletion cmd/crates/soroban-spec-typescript/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub fn entry_to_parser(entry: &Entry) -> Option<(String, String)> {
}

let output = outputs
.get(0)
.first()
.map(|_| format!("this.spec.funcResToNative(\"{name}\", result)"))
.unwrap_or_default();
let parse_result_xdr = if return_type == "void" {
Expand Down

0 comments on commit 6818ab7

Please sign in to comment.