Apply rustfmt

Reviewed By: zertosh

Differential Revision: D38485159

fbshipit-source-id: 0abdf44561da00697953fe2cb9211ceb5cf27ac0
This commit is contained in:
Stiopa Koltsov
2022-08-06 08:42:43 -07:00
committed by Facebook GitHub Bot
parent 4d5b358beb
commit 7227f722ac
3 changed files with 15 additions and 10 deletions

View File

@@ -7,11 +7,13 @@
//! Intrinsic hash for a tarball.
use crate::types;
use anyhow::Result;
use std::collections;
use std::io;
use anyhow::Result;
use crate::types;
/// Computes the intrinsic SHA256 checksum of a tar archive.
pub fn tarsum<R: io::Read>(reader: R) -> Result<types::HashSum> {
use sha2::Digest;
@@ -46,10 +48,11 @@ fn digest_file<R: io::Read>(reader: &mut R) -> io::Result<types::HashSum> {
#[cfg(test)]
mod test {
use super::*;
use std::fs;
use std::path;
use super::*;
#[test]
fn test_nested_archive_tarsum() {
// This is an archive with a nested directory structure.