Skip to content

Commit b1167d9

Browse files
committed
Merge branch 'hotfix/1.0.2'
2 parents 76ac278 + c8ce46c commit b1167d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "holium"
3-
version = "1.0.1-alpha"
3+
version = "1.0.2"
44
authors = ["Polyphene <contact@polyphene.io>"]
55
edition = "2018"
66
license = "MIT"

src/utils/interplanetary/kinds/selector.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ impl From<ExploreIndex> for JsonValue {
255255
let mut map = Map::new();
256256
map.insert(
257257
"i".to_string(),
258-
JsonValue::Number(Number::from_f64(object.index as f64).unwrap()),
258+
JsonValue::Number(Number::from(object.index as u64)),
259259
);
260260
map.insert(">".to_string(), selector);
261261
JsonValue::Object(map)
@@ -330,11 +330,11 @@ impl From<ExploreRange> for JsonValue {
330330
let mut map = Map::new();
331331
map.insert(
332332
"^".to_string(),
333-
JsonValue::Number(Number::from_f64(object.start as f64).unwrap()),
333+
JsonValue::Number(Number::from(object.start as u64)),
334334
);
335335
map.insert(
336336
"$".to_string(),
337-
JsonValue::Number(Number::from_f64(object.end as f64).unwrap()),
337+
JsonValue::Number(Number::from(object.end as u64)),
338338
);
339339
map.insert(">".to_string(), selector);
340340
JsonValue::Object(map)

0 commit comments

Comments
 (0)