tor-persist: Resource::Temporary: Mark with cfg
Without this, some builds get a "variant is never constructed" warning.
This commit is contained in:
parent
44f37b2d07
commit
b7de46958d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue