From bb9e581ea20a084e3297fac009ae3e7a5489d5df Mon Sep 17 00:00:00 2001 From: Evan Date: Tue, 6 Aug 2024 07:46:07 -0500 Subject: [PATCH] re-add important bounds to AppId in example --- README.md | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5429bc0..ef2aa2e 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ use std::collections::BTreeMap; use std::hash::Hash; use serde::Serialize; -#[derive(Serialize)] +#[derive(Copy, Clone, PartialOrd, Ord, Serialize)] struct AppId(u32); #[derive(Serialize)] diff --git a/src/lib.rs b/src/lib.rs index 204e8c6..a37cfd7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,7 +19,7 @@ //! use std::hash::Hash; //! use serde::Serialize; //! -//! #[derive(Serialize)] +//! #[derive(Copy, Clone, PartialOrd, Ord, Serialize)] //! struct AppId(u32); //! //! #[derive(Serialize)]