Skip to content

Commit

Permalink
clippy::needless_question_mark
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Sep 12, 2024
1 parent 25eaa79 commit 6e4735c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features b
CARGO_DOC_ARGS?=--open

# TODO: Update this after https://github.com/stellar/xdrgen/pull/205 is merged
XDRGEN_VERSION=3bac661688af0615a7192271b79ced8cd30e9dd4
XDRGEN_VERSION=4b8eb266204b26be267f8e420808f9b1af8df98e
# XDRGEN_LOCAL=1
XDRGEN_TYPES_CUSTOM_STR_IMPL_CURR=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12,ClaimableBalanceId
XDRGEN_TYPES_CUSTOM_STR_IMPL_NEXT=PublicKey,AccountId,MuxedAccount,MuxedAccountMed25519,SignerKey,SignerKeyEd25519SignedPayload,NodeId,ScAddress,AssetCode,AssetCode4,AssetCode12,ClaimableBalanceId
Expand Down
6 changes: 5 additions & 1 deletion src/curr/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
// xdr/curr/Stellar-transaction.x
// xdr/curr/Stellar-types.x

#![allow(clippy::missing_errors_doc, clippy::unreadable_literal)]
#![allow(
clippy::missing_errors_doc,
clippy::unreadable_literal,
clippy::needless_question_mark
)]

/// `XDR_FILES_SHA256` is a list of pairs of source files and their SHA256 hashes.
pub const XDR_FILES_SHA256: [(&str, &str); 12] = [
Expand Down
6 changes: 5 additions & 1 deletion src/next/generated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
// xdr/next/Stellar-transaction.x
// xdr/next/Stellar-types.x

#![allow(clippy::missing_errors_doc, clippy::unreadable_literal)]
#![allow(
clippy::missing_errors_doc,
clippy::unreadable_literal,
clippy::needless_question_mark
)]

/// `XDR_FILES_SHA256` is a list of pairs of source files and their SHA256 hashes.
pub const XDR_FILES_SHA256: [(&str, &str); 12] = [
Expand Down

0 comments on commit 6e4735c

Please sign in to comment.