Commit ea42c37e authored by Ian Jackson's avatar Ian Jackson
Browse files

tor-netdoc: Fix signature of hash_slice_for_verification (pre-fmt)

parent f33cdcf4
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -600,7 +600,10 @@ define_derive_deftly! {
        /// `None` if the value wasn't computed.
        /// That shouldn't happen.
        // XXXX make no longer pub(crate)
        pub(crate) fn hash_slice_for_verification(&self, algo: $ttype) -> Option<&[u8]> {
        pub(crate) fn hash_slice_for_verification(
            &self,
            algo: $ttype,
        ) -> Option<&[u8]> {
            // XXXX handle sha1_unnamed correctly
            match algo { $(
                $vtype => Some(self.$FNAME.as_ref()?),