mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
[rust]: fix typo
This commit is contained in:
parent
f9ed746f9a
commit
38f498bb6a
4 changed files with 5 additions and 11 deletions
|
@ -19,7 +19,7 @@ impl std::convert::From<i32> for ExportType {
|
||||||
1 => ExportType::RichText,
|
1 => ExportType::RichText,
|
||||||
_ => {
|
_ => {
|
||||||
log::error!("Invalid export type: {}", val);
|
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)]
|
#[tracing::instrument(skip(data, controller), err)]
|
||||||
pub(crate) async fn export_handler(
|
pub(crate) async fn export_handler(
|
||||||
data: Data<QueryViewRequest>,
|
data: Data<ExportRequest>,
|
||||||
controller: Unit<Arc<ViewController>>,
|
controller: Unit<Arc<ViewController>>,
|
||||||
) -> Result<(), WorkspaceError> {
|
) -> Result<(), WorkspaceError> {
|
||||||
let params: ExportParams = data.into_inner().try_into()?;
|
let params: ExportParams = data.into_inner().try_into()?;
|
||||||
|
|
|
@ -19,7 +19,7 @@ use crate::{
|
||||||
services::{server::Server, TrashCan, TrashEvent},
|
services::{server::Server, TrashCan, TrashEvent},
|
||||||
sql_tables::view::{ViewTable, ViewTableChangeset, ViewTableSql},
|
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 {
|
pub(crate) struct ViewController {
|
||||||
user: Arc<dyn WorkspaceUser>,
|
user: Arc<dyn WorkspaceUser>,
|
||||||
|
@ -140,7 +140,7 @@ impl ViewController {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tracing::instrument(level = "debug", skip(self, params), err)]
|
#[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!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,13 +14,7 @@ use flowy_workspace_infra::{
|
||||||
};
|
};
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
use parking_lot::RwLock;
|
use parking_lot::RwLock;
|
||||||
use std::{
|
use std::{collections::HashMap, sync::Arc};
|
||||||
collections::HashMap,
|
|
||||||
sync::{
|
|
||||||
atomic::{AtomicBool, Ordering},
|
|
||||||
Arc,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref INIT_WORKSPACE: RwLock<HashMap<String, bool>> = RwLock::new(HashMap::new());
|
static ref INIT_WORKSPACE: RwLock<HashMap<String, bool>> = RwLock::new(HashMap::new());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue