Skip to content

Commit 9bbfdba

Browse files
committed
Copy as supertrait for entry urid
1 parent 9a9c7a9 commit 9bbfdba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

log/src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ unsafe impl UriBound for WarningClass {
3131

3232
/// Marker for URID representing the nature of a log message
3333
// Note : it's may be better to have a URID trait to define a common interface
34-
pub unsafe trait EntryType {
34+
pub unsafe trait EntryType
35+
where
36+
Self: Copy,
37+
{
3538
fn get(self) -> u32;
3639
}
3740

0 commit comments

Comments
 (0)