license: remove license-file in favor of license

This commit is contained in:
LIAUD Corentin
2024-11-09 13:39:44 +01:00
committed by cocool97
parent cb23fd6155
commit 66b0e4c71c
4 changed files with 5 additions and 5 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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" }

View File

@@ -57,7 +57,7 @@ fn search_adb_devices() -> Result<Option<(u16, u16)>> {
}
}
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!(