Skip to content

Fix a compilation error when running 'cargo bench --no-default-features --features crypto-botan2'

Alexander Kjäll requested to merge capitol/fix-bench-compilation-error into main

Without this patch:

error[E0432]: unresolved import `openpgp::serialize::stream::padding`
 --> openpgp/benches/common/encrypt.rs:5:5
  |
5 |     padding::Padder, Armorer, Encryptor, LiteralWriter, Message, Signer,
  |     ^^^^^^^ could not find `padding` in `stream`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `sequoia-openpgp` (bench "run_benchmarks") due to previous error

With this patch:

[capitol@batia openpgp]$ cargo bench --no-default-features --features crypto-botan2
    Finished bench [optimized + debuginfo] target(s) in 0.06s

Merge request reports