Merge tag 'v0.1.2' into master am: 3872c9aac3 am: eebee81ae5 am: 6247ffbe96

Original change: https://android-review.googlesource.com/c/platform/external/rust/pica/+/2494865

Change-Id: Idcdf77a48104f18d01ff83d61dc2b4ea5e39f906
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/Cargo.lock b/Cargo.lock
index 4e1828a..75944ec 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -400,7 +400,7 @@
 
 [[package]]
 name = "pica"
-version = "0.1.0"
+version = "0.1.2"
 dependencies = [
  "anyhow",
  "bytes",
diff --git a/Cargo.toml b/Cargo.toml
index 7b2582b..de6e1be 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,7 +6,7 @@
   "David Duarte",
   "Henri Chataing",
 ]
-version = "0.1.1"
+version = "0.1.2"
 edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
diff --git a/src/mac_address.rs b/src/mac_address.rs
index cc9d2c4..320631a 100644
--- a/src/mac_address.rs
+++ b/src/mac_address.rs
@@ -44,7 +44,8 @@
 
 impl From<usize> for MacAddress {
     fn from(device_handle: usize) -> Self {
-        MacAddress::Extend(device_handle.to_be_bytes())
+        let handle = device_handle as u64;
+        MacAddress::Extend(handle.to_be_bytes())
     }
 }