Skip to content

Commit

Permalink
license: remove license-file in favor of license
Browse files Browse the repository at this point in the history
  • Loading branch information
cocool97 committed Nov 9, 2024
1 parent cb23fd6 commit 9f1ad36
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion adb_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions adb_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" }
2 changes: 1 addition & 1 deletion adb_client/src/usb/adb_usb_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 9f1ad36

Please sign in to comment.