mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
[rust]: fix typo
This commit is contained in:
parent
f9ed746f9a
commit
38f498bb6a
@ -19,7 +19,7 @@ impl std::convert::From<i32> for ExportType {
|
||||
1 => ExportType::RichText,
|
||||
_ => {
|
||||
log::error!("Invalid export type: {}", val);
|
||||
ViewType::Text
|
||||
ExportType::Text
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ pub(crate) async fn duplicate_view_handler(
|
||||
|
||||
#[tracing::instrument(skip(data, controller), err)]
|
||||
pub(crate) async fn export_handler(
|
||||
data: Data<QueryViewRequest>,
|
||||
data: Data<ExportRequest>,
|
||||
controller: Unit<Arc<ViewController>>,
|
||||
) -> Result<(), WorkspaceError> {
|
||||
let params: ExportParams = data.into_inner().try_into()?;
|
||||
|
@ -19,7 +19,7 @@ use crate::{
|
||||
services::{server::Server, TrashCan, TrashEvent},
|
||||
sql_tables::view::{ViewTable, ViewTableChangeset, ViewTableSql},
|
||||
};
|
||||
use flowy_workspace_infra::entities::share::{ExportData, ExportParams, ExportRequest};
|
||||
use flowy_workspace_infra::entities::share::{ExportData, ExportParams};
|
||||
|
||||
pub(crate) struct ViewController {
|
||||
user: Arc<dyn WorkspaceUser>,
|
||||
@ -140,7 +140,7 @@ impl ViewController {
|
||||
}
|
||||
|
||||
#[tracing::instrument(level = "debug", skip(self, params), err)]
|
||||
pub(crate) async fn export_doc(&self, params: ExportParams) -> Result<ExportData, WorkspaceError> {
|
||||
pub(crate) async fn export_doc(&self, _params: ExportParams) -> Result<ExportData, WorkspaceError> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
|
@ -14,13 +14,7 @@ use flowy_workspace_infra::{
|
||||
};
|
||||
use lazy_static::lazy_static;
|
||||
use parking_lot::RwLock;
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
sync::{
|
||||
atomic::{AtomicBool, Ordering},
|
||||
Arc,
|
||||
},
|
||||
};
|
||||
use std::{collections::HashMap, sync::Arc};
|
||||
|
||||
lazy_static! {
|
||||
static ref INIT_WORKSPACE: RwLock<HashMap<String, bool>> = RwLock::new(HashMap::new());
|
||||
|
Loading…
Reference in New Issue
Block a user