We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bedef8f commit e234d37Copy full SHA for e234d37
stackslib/src/net/api/getattachmentsinv.rs
@@ -96,10 +96,7 @@ impl HttpRequest for RPCGetAttachmentsInvRequestHandler {
96
if key == "index_block_hash" {
97
index_block_hash = StacksBlockId::from_hex(&value).ok();
98
} else if key == "pages_indexes" {
99
- #[allow(clippy::expect_used)]
100
- let pages_indexes_value = value
101
- .parse::<String>()
102
- .expect("parse from Cow<str> is always safe");
+ let pages_indexes_value = value.to_string();
103
for entry in pages_indexes_value.split(',') {
104
if let Ok(page_index) = entry.parse::<u32>() {
105
page_indexes.insert(page_index);
0 commit comments