Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ build = "build.rs"
name = "sentry-cli"
version = "2.58.2"
edition = "2021"
rust-version = "1.86"
rust-version = "1.91"

[workspace]

Expand Down
2 changes: 1 addition & 1 deletion src/commands/dart_symbol_map/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub(super) fn execute(args: DartSymbolMapUploadArgs) -> Result<()> {
serde_json::from_slice(mapping_file_bytes.as_ref())
.context("Invalid dartsymbolmap: expected a JSON array of strings")?;

if mapping_entries.len() % 2 != 0 {
if !mapping_entries.len().is_multiple_of(2) {
bail!(
"Invalid dartsymbolmap: expected an even number of entries, got {}",
mapping_entries.len()
Expand Down