diff rust/hg-core/src/revlog/compression.rs @ 52341: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 0744248cc541
children
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/compression.rs	Mon Nov 04 12:10:22 2024 +0100
+++ b/rust/hg-core/src/revlog/compression.rs	Mon Nov 04 13:43:36 2024 +0100
@@ -141,7 +141,7 @@
 
 /// A high-level trait to define compressors that should be able to compress
 /// and decompress arbitrary bytes.
-pub trait Compressor {
+pub trait Compressor: Send {
     /// Returns a new [`Vec`] with the compressed data.
     /// Should return `Ok(None)` if compression does not apply (e.g. too small)
     fn compress(