Skip to content

Commit 8785b9c

Browse files
committed
require the copy trait on ViewInverse
1 parent aa30281 commit 8785b9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub trait ProxyView {
4343
/// has a unique proxy type associated with it, which is the one that produces the view. This also means
4444
/// that the definition of these two traits mutually requires both to be defined simultaneously for any
4545
/// view and proxy pair.
46-
pub trait ViewInverse<'a> {
46+
pub trait ViewInverse<'a>: Copy {
4747
type Owned: 'a;
4848
type Proxy: ProxyView<View<'a> = Self, Owned = Self::Owned>;
4949
}

0 commit comments

Comments
 (0)