Sebastian Thielthanks clippya7ac64c4 years agoHistory
20 lines · 687 B · Rust
RawDownload
#[test]#[cfg(feature = "internal-testing-git-features-parallel")]fn is_send_and_sync() {    pub fn store_at(name: &str) -> crate::Result<git_ref::file::Store> {        let path = git_testtools::scripted_fixture_repo_read_only(name)?;        Ok(git_ref::file::Store::at(            path.join(".git"),            git_ref::store::WriteReflog::Normal,            git_hash::Kind::Sha1,        ))    }     pub fn store_with_packed_refs() -> crate::Result<git_ref::file::Store> {        store_at("make_packed_ref_repository.sh")    }    fn assert_type<T: Send + Sync>(_t: T) {}    let store = store_with_packed_refs().unwrap();    assert_type(&store);    assert_type(store);}