Skip to content

Commit

Permalink
delete uuid previous impl comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pxp9 committed Apr 16, 2024
1 parent 527868b commit 0f0be07
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions fang/src/asynk/backend_sqlx/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ impl<'a> FromRow<'a, PgRow> for Task {
fn from_row(row: &'a PgRow) -> Result<Self, sqlx::Error> {
let id: Uuid = row.get("id");

//let id = Uuid::parse_str(uuid_as_text).unwrap();

let raw: &str = row.get("metadata"); // will work if database cast json to string
let raw = raw.replace('\\', "");

Expand Down
2 changes: 0 additions & 2 deletions fang/src/asynk/backend_sqlx/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ impl<'a> FromRow<'a, SqliteRow> for Task {
fn from_row(row: &'a SqliteRow) -> Result<Self, sqlx::Error> {
let id: Uuid = row.get("id");

//let id = Uuid::parse_str(uuid_as_text).unwrap();

let raw: &str = row.get("metadata"); // will work if database cast json to string
let raw = raw.replace('\\', "");

Expand Down

0 comments on commit 0f0be07

Please sign in to comment.