Ver Fonte

Fix incorrect conditional compilation feature

timvisee há 6 anos atrás
pai
commit
da49dc5345
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/action/upload.rs

+ 1 - 1
src/action/upload.rs

@@ -12,7 +12,7 @@ use ffsend_api::action::version::Error as VersionError;
 use ffsend_api::config::{upload_size_max, UPLOAD_SIZE_MAX_RECOMMENDED};
 use ffsend_api::config::{upload_size_max, UPLOAD_SIZE_MAX_RECOMMENDED};
 use ffsend_api::pipe::ProgressReporter;
 use ffsend_api::pipe::ProgressReporter;
 use prettytable::{format::FormatBuilder, Cell, Row, Table};
 use prettytable::{format::FormatBuilder, Cell, Row, Table};
-#[cfg(feature = "history")]
+#[cfg(feature = "qrcode")]
 use qr2term::print_qr;
 use qr2term::print_qr;
 #[cfg(feature = "archive")]
 #[cfg(feature = "archive")]
 use tempfile::{Builder as TempBuilder, NamedTempFile};
 use tempfile::{Builder as TempBuilder, NamedTempFile};