Skip to content

Commit

Permalink
impl for [A; N]
Browse files Browse the repository at this point in the history
Summary:
Since D56121358, `Dupe` is for all types that are cloned at constant time. Arrays are such types.

This is mostly for consistency.

Reviewed By: JakobDegen

Differential Revision: D56122515

fbshipit-source-id: 99480fdfd2c2fb564de5ac0c9e0f3235073d221f
  • Loading branch information
stepancheg authored and facebook-github-bot committed Apr 15, 2024
1 parent 3bd2fb4 commit e800fcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gazebo/dupe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ impl<A: Dupe, B: Dupe, C: Dupe, D: Dupe, E: Dupe, F: Dupe, G: Dupe, H: Dupe, I:
{
}

impl<A: Dupe, const N: usize> Dupe for [A; N] {}

// Atomic types
impl Dupe for bool {}
impl Dupe for char {}
Expand Down

0 comments on commit e800fcc

Please sign in to comment.