Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/revlog/inner_revlog.rs @ 52305:f69a3f55fa9b
rust-compression: move the `Send` bound to the `Compressor` trait
All compressors should be `Send`, might as well make any future use easier.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 04 Nov 2024 13:43:36 +0100 |
parents | 7756494c5ecd |
children | 162f4801ad39 |
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/inner_revlog.rs Mon Nov 04 12:10:22 2024 +0100 +++ b/rust/hg-core/src/revlog/inner_revlog.rs Mon Nov 04 13:43:36 2024 +0100 @@ -75,7 +75,7 @@ /// The [`Compressor`] that this revlog uses by default to compress data. /// This does not mean that this revlog uses this compressor for reading /// data, as different revisions may have different compression modes. - compressor: Mutex<Box<dyn Compressor + Send>>, + compressor: Mutex<Box<dyn Compressor>>, } impl InnerRevlog {