Skip to content

Commit

Permalink
Allocative for NoneOr
Browse files Browse the repository at this point in the history
Summary: Needed for migration for D63717899, good as is.

Reviewed By: JakobDegen

Differential Revision: D63724609

fbshipit-source-id: bfe3e97b6b05cc67ce4d7cecde49e68712e01378
  • Loading branch information
stepancheg authored and facebook-github-bot committed Oct 2, 2024
1 parent 1b4c184 commit e09c119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion starlark/src/values/types/none/none_or.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* limitations under the License.
*/

use allocative::Allocative;
use dupe::Dupe;
use either::Either;

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

0 comments on commit e09c119

Please sign in to comment.