diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2023-03-03 17:58:26 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-03-03 17:58:26 +0000 |
commit | 5de37e44ebf484f586130c0260b6c942c170d7c4 (patch) | |
tree | 9fe26166fc939c4ca5ac18852d73fb0e22004f69 | |
parent | 601176b3557a84fcfac2c0c3c82990c137a76dd4 (diff) | |
parent | f4edb8b7b3a1b081a4b45da63d7ed16de4ec7dee (diff) | |
download | bstr-5de37e44ebf484f586130c0260b6c942c170d7c4.tar.gz |
Upgrade bstr to 1.3.0 am: b3a08ad120 am: f4edb8b7b3
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/bstr/+/2467480
Change-Id: Iaefadc9e930aa4a163ceb50d6f21422ce3a956c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | .cargo_vcs_info.json | 2 | ||||
-rw-r--r-- | Android.bp | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | Cargo.toml.orig | 2 | ||||
-rw-r--r-- | METADATA | 8 | ||||
-rw-r--r-- | src/impls.rs | 7 |
6 files changed, 15 insertions, 8 deletions
diff --git a/.cargo_vcs_info.json b/.cargo_vcs_info.json index 117fa04..ff424fa 100644 --- a/.cargo_vcs_info.json +++ b/.cargo_vcs_info.json @@ -1,6 +1,6 @@ { "git": { - "sha1": "65993b58be1547bfc0de9ad8c1c8f3d3fcb0a32f" + "sha1": "f72910a192f37e85932211bef957fbadaecefbaf" }, "path_in_vcs": "" }
\ No newline at end of file @@ -44,7 +44,7 @@ rust_library { host_supported: true, crate_name: "bstr", cargo_env_compat: true, - cargo_pkg_version: "1.2.0", + cargo_pkg_version: "1.3.0", srcs: ["src/lib.rs"], edition: "2021", features: [ @@ -13,7 +13,7 @@ edition = "2021" rust-version = "1.60" name = "bstr" -version = "1.2.0" +version = "1.3.0" authors = ["Andrew Gallant <jamslam@gmail.com>"] exclude = ["/.github"] description = "A string type that is not required to be valid UTF-8." diff --git a/Cargo.toml.orig b/Cargo.toml.orig index bdfa0b7..ef559d7 100644 --- a/Cargo.toml.orig +++ b/Cargo.toml.orig @@ -1,6 +1,6 @@ [package] name = "bstr" -version = "1.2.0" #:version +version = "1.3.0" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = "A string type that is not required to be valid UTF-8." documentation = "https://docs.rs/bstr" @@ -11,13 +11,13 @@ third_party { } url { type: ARCHIVE - value: "https://static.crates.io/crates/bstr/bstr-1.2.0.crate" + value: "https://static.crates.io/crates/bstr/bstr-1.3.0.crate" } - version: "1.2.0" + version: "1.3.0" license_type: NOTICE last_upgrade_date { year: 2023 - month: 2 - day: 15 + month: 3 + day: 2 } } diff --git a/src/impls.rs b/src/impls.rs index 7ae4510..c063cb6 100644 --- a/src/impls.rs +++ b/src/impls.rs @@ -563,6 +563,13 @@ mod bstr { } } + impl AsRef<BStr> for BStr { + #[inline] + fn as_ref(&self) -> &BStr { + self + } + } + impl AsRef<BStr> for [u8] { #[inline] fn as_ref(&self) -> &BStr { |