tor-netdoc: Make SectionRules derive Clone.

This is going to come in handy for the networkstatus stuff, where I
need to define different variants of SectionRules for votes and
consensuses.
This commit is contained in:
Nick Mathewson 2020-06-28 10:51:28 -04:00
parent 173bec26a5
commit 8c0bbfef2c
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ use crate::{Error, Result};
///
/// The rules are represented as a mapping from token index to
/// rules::TokenFmt.
#[derive(Clone)]
pub struct SectionRules<T: Keyword> {
rules: Vec<Option<TokenFmt<T>>>,
}