tor-persist: Resource::Temporary: Mark with cfg

Without this, some builds get a "variant is never constructed" warning.
This commit is contained in:
Ian Jackson 2022-07-18 13:07:30 +01:00
parent 44f37b2d07
commit b7de46958d
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ pub(crate) enum Resource {
file: std::path::PathBuf,
},
/// Testing-only: a scratch-item in a memory-backed store.
#[cfg(feature = "testing")]
#[display(fmt = "{} in memory-backed store", key)]
Temporary {
/// The key for the scratch item