(&self)
| 180 | |
| 181 | impl Clone for CryptoHasher { |
| 182 | fn clone(&self) -> Self { |
| 183 | let ctx = unsafe { c::git_hash_alloc() }; |
| 184 | unsafe { c::git_hash_clone(ctx, self.ctx) }; |
| 185 | Self { |
| 186 | algo: self.algo, |
| 187 | ctx, |
| 188 | } |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | impl Drop for CryptoHasher { |