Mercurial > hg
changeset 52039:b8b3984deae3
rust-files: add a `Sync` bound to the matcher
This enables us to use this code in multithreaded environements, which we
very much want to do.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Mon, 30 Sep 2024 19:12:42 +0200 |
parents | b7d99348ea36 |
children | 7c105b953ca4 |
files | rust/hg-core/src/operations/list_tracked_files.rs |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/operations/list_tracked_files.rs Mon Sep 30 12:10:35 2024 +0200 +++ b/rust/hg-core/src/operations/list_tracked_files.rs Mon Sep 30 19:12:42 2024 +0200 @@ -20,7 +20,7 @@ pub fn list_rev_tracked_files( repo: &Repo, revset: &str, - narrow_matcher: Box<dyn Matcher>, + narrow_matcher: Box<dyn Matcher + Sync>, ) -> Result<FilesForRev, RevlogError> { let rev = crate::revset::resolve_single(revset, repo)?; Ok(FilesForRev { @@ -31,7 +31,7 @@ pub struct FilesForRev { manifest: Manifest, - narrow_matcher: Box<dyn Matcher>, + narrow_matcher: Box<dyn Matcher + Sync>, } /// Like [`crate::revlog::manifest::ManifestEntry`], but with the `Node`