| { | ||
| "git": { | ||
| "sha1": "e16ba527854ca0edc36695e4e65fdcbc4dccd188" | ||
| "sha1": "55cd12ebb25c6261492e1e3dfa2e6453c54dde31" | ||
| }, | ||
| "path_in_vcs": "utils/zerofrom" | ||
| } |
+4
-4
@@ -14,5 +14,5 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| edition = "2021" | ||
| rust-version = "1.66" | ||
| rust-version = "1.67" | ||
| name = "zerofrom" | ||
| version = "0.1.3" | ||
| version = "0.1.4" | ||
| authors = ["Manish Goregaokar <manishsmail@gmail.com>"] | ||
@@ -42,3 +42,3 @@ include = [ | ||
| ] | ||
| license-file = "LICENSE" | ||
| license = "Unicode-3.0" | ||
| repository = "https://github.com/unicode-org/icu4x" | ||
@@ -53,3 +53,3 @@ | ||
| [dependencies.zerofrom-derive] | ||
| version = "0.1.1" | ||
| version = "0.1.3" | ||
| optional = true | ||
@@ -56,0 +56,0 @@ default-features = false |
+3
-1
@@ -5,3 +5,3 @@ UNICODE LICENSE V3 | ||
| Copyright © 2020-2023 Unicode, Inc. | ||
| Copyright © 2020-2024 Unicode, Inc. | ||
@@ -42,2 +42,4 @@ NOTICE TO USER: Carefully read the following legal agreement. BY | ||
| SPDX-License-Identifier: Unicode-3.0 | ||
| — | ||
@@ -44,0 +46,0 @@ |
+1
-1
@@ -9,3 +9,3 @@ // This file is part of ICU4X. For terms of use, please see the file | ||
| // https://github.com/unicode-org/icu4x/blob/main/docs/process/boilerplate.md#library-annotations | ||
| // https://github.com/unicode-org/icu4x/blob/main/documents/process/boilerplate.md#library-annotations | ||
| #![cfg_attr(not(test), no_std)] | ||
@@ -12,0 +12,0 @@ #![cfg_attr( |
+8
-0
@@ -5,2 +5,4 @@ // This file is part of ICU4X. For terms of use, please see the file | ||
| use core::marker::PhantomData; | ||
| #[cfg(feature = "alloc")] | ||
@@ -130,1 +132,7 @@ use alloc::borrow::{Cow, ToOwned}; | ||
| } | ||
| impl<'zf, T: ?Sized + 'zf> ZeroFrom<'zf, PhantomData<T>> for PhantomData<T> { | ||
| fn zero_from(other: &'zf PhantomData<T>) -> Self { | ||
| *other | ||
| } | ||
| } |
Sorry, the diff of this file is not supported yet