diff --git a/Cargo.toml b/Cargo.toml index 2439e1b..6f65724 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,7 @@ name = "intelligence-homepage" description = "Backend for the Homepage of the intelligence modding team" authors = ["srendi"] keywords = ["homepage", "blog", "backend", "surrealdb", "s3"] +license = "MIT" version = "0.1.0" edition = "2021" rust-version = "1.82.0" diff --git a/src/definitions.rs b/src/definitions.rs index 12d1b73..9062117 100644 --- a/src/definitions.rs +++ b/src/definitions.rs @@ -1,7 +1,7 @@ use std::cmp::PartialEq; use std::fmt; use serde::{Deserialize, Deserializer, Serialize, Serializer}; -use surrealdb::sql::{Datetime, Id}; +use surrealdb::sql::Id; impl fmt::Display for IntelliThing { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { @@ -71,7 +71,7 @@ fn serialize_option_record_id<S>(record_id: &Option<IntelliThing>, serializer: S where S: Serializer, { - match (record_id) { + match record_id { None => { Ok(serializer.serialize_str("")?) }