]> git.bitcoin.ninja Git - dnssec-prover/commitdiff
Derive `Clone` for `ProofBuilder`
authorMatt Corallo <git@bluematt.me>
Sun, 14 Apr 2024 17:17:04 +0000 (17:17 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 14 Apr 2024 17:22:46 +0000 (17:22 +0000)
src/query.rs

index 1e02e2b1dfd14e742e9d470f8b67e388500b0feb..bb724020ea98f792f1631ca20d89616415d9aa75 100644 (file)
@@ -207,6 +207,7 @@ const MAX_REQUESTS: usize = 10;
 /// make a query to `https://doh-server/endpoint?dns=base64url_encoded_query` with an `Accept`
 /// header of `application/dns-message`. Each response, in raw binary, can be fed directly into
 /// [`ProofBuilder::process_response`].
+#[derive(Clone)]
 pub struct ProofBuilder {
        proof: Vec<u8>,
        min_ttl: u32,