Skip to content

Commit

Permalink
Add license
Browse files Browse the repository at this point in the history
  • Loading branch information
SirEndii committed Nov 23, 2024
1 parent a7e3241 commit d16a526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/definitions.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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("")?)
}
Expand Down

0 comments on commit d16a526

Please sign in to comment.