From 66b0e4c71c01c63f44303f15cea7c141303dce02 Mon Sep 17 00:00:00 2001 From: LIAUD Corentin Date: Sat, 9 Nov 2024 13:39:44 +0100 Subject: [PATCH] license: remove license-file in favor of license --- Cargo.toml | 2 +- adb_cli/Cargo.toml | 2 +- adb_client/Cargo.toml | 4 ++-- adb_client/src/usb/adb_usb_device.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2710bf7..4c1801e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ authors = ["Corentin LIAUD"] edition = "2021" homepage = "https://github.com/cocool97/adb_client" keywords = ["adb", "android", "tcp", "usb"] -license-file = "LICENSE" +license = "MIT" repository = "https://github.com/cocool97/adb_client" version = "2.0.2" diff --git a/adb_cli/Cargo.toml b/adb_cli/Cargo.toml index f7e38c5..a6cc3fc 100644 --- a/adb_cli/Cargo.toml +++ b/adb_cli/Cargo.toml @@ -3,7 +3,7 @@ authors.workspace = true description = "Rust ADB (Android Debug Bridge) CLI" edition.workspace = true keywords.workspace = true -license-file.workspace = true +license.workspace = true name = "adb_cli" readme = "README.md" repository.workspace = true diff --git a/adb_client/Cargo.toml b/adb_client/Cargo.toml index 28a6730..e8d0e15 100644 --- a/adb_client/Cargo.toml +++ b/adb_client/Cargo.toml @@ -3,7 +3,7 @@ authors.workspace = true description = "Rust ADB (Android Debug Bridge) client library" edition.workspace = true keywords.workspace = true -license-file.workspace = true +license.workspace = true name = "adb_client" readme = "README.md" repository.workspace = true @@ -25,4 +25,4 @@ rsa = { version = "0.3.0" } rusb = { version = "0.9.4", features = ["vendored"] } serde = { version = "1.0.210", features = ["derive"] } serde_repr = "0.1.19" -thiserror = { version = "1.0.64" } +thiserror = { version = "2.0.1" } diff --git a/adb_client/src/usb/adb_usb_device.rs b/adb_client/src/usb/adb_usb_device.rs index e4fda72..d416ace 100644 --- a/adb_client/src/usb/adb_usb_device.rs +++ b/adb_client/src/usb/adb_usb_device.rs @@ -57,7 +57,7 @@ fn search_adb_devices() -> Result> { } } - match (found_devices.get(0), found_devices.get(1)) { + match (found_devices.first(), found_devices.get(1)) { (None, _) => Ok(None), (Some(identifiers), None) => Ok(Some(*identifiers)), (Some((vid1, pid1)), Some((vid2, pid2))) => Err(RustADBError::DeviceNotFound(format!(