diff --git a/identified_vec/src/is_identifiable_vec.rs b/identified_vec/src/is_identifiable_vec.rs index 6ee0fff..a23368f 100644 --- a/identified_vec/src/is_identifiable_vec.rs +++ b/identified_vec/src/is_identifiable_vec.rs @@ -70,7 +70,7 @@ where /// /// impl Identifiable for User { /// type ID = &'static str; - /// fn id(&self) -> ID { + /// fn id(&self) -> Self::ID { /// self.id /// } /// } @@ -197,7 +197,7 @@ where /// /// impl Identifiable for User { /// type ID = &'static str; - /// fn id(&self) -> ID { + /// fn id(&self) -> Self::ID { /// self.id /// } /// } diff --git a/identified_vec/src/is_identified_vec_via.rs b/identified_vec/src/is_identified_vec_via.rs index dbed1a3..5364f15 100644 --- a/identified_vec/src/is_identified_vec_via.rs +++ b/identified_vec/src/is_identified_vec_via.rs @@ -1,7 +1,5 @@ use crate::conflict_resolution_choice::ConflictResolutionChoice; use crate::{Identifiable, IdentifiedVecOf, IsIdentifiableVec, IsIdentifiableVecOf}; -use std::fmt::Debug; -use std::hash::Hash; /// https://stackoverflow.com/a/66537661/1311272 pub trait ViaMarker {} diff --git a/identified_vec/src/vec.rs b/identified_vec/src/vec.rs index af6a604..54bf07a 100644 --- a/identified_vec/src/vec.rs +++ b/identified_vec/src/vec.rs @@ -46,7 +46,7 @@ use crate::is_identifiable_vec::IsIdentifiableVec; /// /// impl Identifiable for User { /// type ID = &'static str; -/// fn id(&self) -> I { +/// fn id(&self) -> Self::ID { /// self.id /// } /// } @@ -353,7 +353,7 @@ where /// /// impl Identifiable for User { /// type ID = &'static str; - /// fn id(&self) -> I { + /// fn id(&self) -> Self::ID { /// self.id /// } /// } @@ -551,7 +551,7 @@ where /// /// impl Identifiable for User { /// type ID = &'static str; - /// fn id(&self) -> I { + /// fn id(&self) -> Self::ID { /// self.id /// } /// }