refactor(tvix/[ca]store): use auto_impl
This implements BS, DS, PS for Box'ed or Arc'ed variants of it with less code, and less potential to accidentially forget to proxy default trait methods for blanked impls, as fixed in cl/12658. Change-Id: If2cdbb563a73792038ebe7bff45d6f880214855b Reviewed-on: https://cl.tvl.fyi/c/depot/+/12661 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: edef <edef@edef.eu>
This commit is contained in:
parent
47efebfc6f
commit
9c22345019
16 changed files with 85 additions and 99 deletions
13
tvix/Cargo.lock
generated
13
tvix/Cargo.lock
generated
|
@ -277,6 +277,17 @@ version = "1.1.2"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
|
||||
|
||||
[[package]]
|
||||
name = "auto_impl"
|
||||
version = "1.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn 2.0.79",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "autocfg"
|
||||
version = "1.4.0"
|
||||
|
@ -4572,6 +4583,7 @@ dependencies = [
|
|||
"async-process",
|
||||
"async-stream",
|
||||
"async-tempfile",
|
||||
"auto_impl",
|
||||
"bigtable_rs",
|
||||
"blake3",
|
||||
"bstr",
|
||||
|
@ -4765,6 +4777,7 @@ dependencies = [
|
|||
"async-compression",
|
||||
"async-process",
|
||||
"async-stream",
|
||||
"auto_impl",
|
||||
"bigtable_rs",
|
||||
"blake3",
|
||||
"bstr",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue