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)]