mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: remove unused code & update log (#5194)
* chore: remove unused code & update log * chore: clippy * chore: log
This commit is contained in:
@ -6,6 +6,7 @@ use serde::de::{MapAccess, Visitor};
|
||||
use serde::{Deserialize, Deserializer, Serialize};
|
||||
use serde_json::Value;
|
||||
use std::fmt;
|
||||
use std::fmt::Display;
|
||||
use uuid::Uuid;
|
||||
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
@ -15,6 +16,16 @@ pub struct Session {
|
||||
pub user_workspace: UserWorkspace,
|
||||
}
|
||||
|
||||
impl Display for Session {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
"user_id: {}, user_workspace: {}:{}",
|
||||
self.user_id, self.user_workspace.name, self.user_workspace.id,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
struct SessionVisitor;
|
||||
impl<'de> Visitor<'de> for SessionVisitor {
|
||||
type Value = Session;
|
||||
|
Reference in New Issue
Block a user