diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-20 16:05:04 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-20 16:05:04 +0000 |
commit | c832ae2129f7df9a08d3c330a8af3ee87048f937 (patch) | |
tree | 425ab8ac9963150604207ffcd751ad6ae7b90056 | |
parent | ab782cd4cd5680fb7238ddce4b96fe0836102833 (diff) | |
parent | 7d2245462e9b4a2509f273168f2f5747b159012a (diff) | |
download | bstr-c832ae2129f7df9a08d3c330a8af3ee87048f937.tar.gz |
Snap for 9979206 from 7d2245462e9b4a2509f273168f2f5747b159012a to sdk-releaseplatform-tools-34.0.3
Change-Id: I4b1a3c6717b3cdbb2ab4ab4197a0a965381f3ce5
-rw-r--r-- | .cargo_vcs_info.json | 2 | ||||
-rw-r--r-- | Android.bp | 4 | ||||
-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, 17 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: [ @@ -62,4 +62,6 @@ rust_library { "//apex_available:platform", "//apex_available:anyapex", ], + product_available: true, + vendor_available: true, } @@ -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 { |