Skip to content

Commit e09c119

Browse files
stepanchegfacebook-github-bot
authored andcommitted
Allocative for NoneOr
Summary: Needed for migration for D63717899, good as is. Reviewed By: JakobDegen Differential Revision: D63724609 fbshipit-source-id: bfe3e97b6b05cc67ce4d7cecde49e68712e01378
1 parent 1b4c184 commit e09c119

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

starlark/src/values/types/none/none_or.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18+
use allocative::Allocative;
1819
use dupe::Dupe;
1920
use either::Either;
2021

@@ -32,7 +33,7 @@ use crate::values::Value;
3233
/// Equivalent of a Rust [`Option`], where `None`
3334
/// is encoded as [`NoneType`](crate::values::none::NoneType).
3435
/// Useful for its [`UnpackValue`] instance.
35-
#[derive(Debug, Eq, PartialEq, Copy, Clone, Dupe)]
36+
#[derive(Debug, Eq, PartialEq, Copy, Clone, Dupe, Allocative)]
3637
pub enum NoneOr<T> {
3738
/// Starlark `None`.
3839
None,

0 commit comments

Comments
 (0)