diff --git a/gitoid/src/gitoid.rs b/gitoid/src/gitoid.rs index 0868609..edc173c 100644 --- a/gitoid/src/gitoid.rs +++ b/gitoid/src/gitoid.rs @@ -39,7 +39,7 @@ pub struct GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { #[doc(hidden)] @@ -55,7 +55,7 @@ impl GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { //=========================================================================================== @@ -78,7 +78,7 @@ where where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { // PANIC SAFETY: We're reading from an in-memory buffer, so no IO errors can arise. @@ -95,7 +95,7 @@ where where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { GitOid::from_bytes(s.as_bytes()) @@ -170,7 +170,7 @@ impl FromStr for GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { type Err = Error; @@ -184,7 +184,7 @@ impl Clone for GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { fn clone(&self) -> Self { @@ -196,7 +196,7 @@ impl Copy for GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { } @@ -205,7 +205,7 @@ impl PartialEq> for GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { fn eq(&self, other: &GitOid) -> bool { @@ -217,7 +217,7 @@ impl Eq for GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { } @@ -226,7 +226,7 @@ impl PartialOrd> for GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { fn partial_cmp(&self, other: &Self) -> Option { @@ -238,7 +238,7 @@ impl Ord for GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { fn cmp(&self, other: &Self) -> Ordering { @@ -250,7 +250,7 @@ impl Hash for GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { fn hash

(&self, state: &mut H2) @@ -265,7 +265,7 @@ impl Debug for GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult { @@ -279,7 +279,7 @@ impl Display for GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult { @@ -291,7 +291,7 @@ struct GitOidUrlParser<'u, H, O> where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { url: &'u Url, @@ -313,7 +313,7 @@ impl<'u, H, O> GitOidUrlParser<'u, H, O> where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { fn new(url: &'u Url) -> GitOidUrlParser<'u, H, O> { @@ -402,7 +402,7 @@ impl TryFrom for GitOid where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, { type Error = Error; @@ -430,7 +430,7 @@ fn gitoid_from_buffer( where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, R: Read, { @@ -506,7 +506,7 @@ fn hash_from_buffer( where H: HashAlgorithm, O: ObjectType, - ::OutputSize: ArrayLength, + H::OutputSize: ArrayLength, GenericArray: Copy, R: Read, {