matrix-sdk: Allow the key import error to be dead under WASM

master
Damir Jelić 2021-07-19 11:19:14 +02:00
parent 26310def0a
commit 3a8ff2f6b4
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ pub enum Error {
#[cfg(feature = "encryption")]
#[cfg_attr(feature = "docs", doc(cfg(encryption)))]
#[derive(Error, Debug)]
// This is allowed because key importing isn't enabled under wasm.
#[allow(dead_code)]
pub enum RoomKeyImportError {
/// An error de/serializing type for the `StateStore`
#[error(transparent)]