Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Added fixes suggested by augustus and got the test to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmmott committed Sep 26, 2022
1 parent c7d1d7a commit bcd77ba
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 85 deletions.
91 changes: 13 additions & 78 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ anyhow = "1"
async-bb8-diesel = { git = "https://github.com/oxidecomputer/async-bb8-diesel.git", rev = "7944dafc8a36dc6e20a1405eca59d04662de2bb7" }
async-trait = "^0.1.57"
base64 = "0.13.0"
bb8 = "0.8.0"
bytes = "1"
checkr = "^0.0.10"
chrono = { version = "^0.4.20", features = ["serde"] }
Expand All @@ -38,7 +39,7 @@ chrono-tz = { version = "0.6", features = ["serde"] }
cio-api = { path = "cio" }
cio-api-types = { path = "cio-api-types" }
cloudflare = "^0.9.1"
diesel = { git = "https://github.com/diesel-rs/diesel", rev = "99d0b05" }
diesel = { version = "2.0.0" }
docusign = "^0.1.0"
dropshot = { git = "https://github.com/oxidecomputer/dropshot" }
dropshot-verify-request = { path = "dropshot-verify-request" }
Expand Down
2 changes: 1 addition & 1 deletion cio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async-bb8-diesel = { workspace = true }
async-trait= { workspace = true }
barcoders = { version = "1.0.2", features = ["image", "ascii", "svg", "json"]}
base64 = { workspace = true }
bb8 = "^0.7.1"
bb8 = { workspace = true }
byte-unit = "4"
checkr = { workspace = true }
#checkr = { path = "../checkr" }
Expand Down
4 changes: 2 additions & 2 deletions cio/src/configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl fmt::Display for ExternalServices {
}

impl ToSql<VarChar, Pg> for ExternalServices {
fn to_sql<W: std::io::Write>(&self, out: &mut Output<Pg>) -> serialize::Result {
fn to_sql(&self, out: &mut Output<Pg>) -> serialize::Result {
<str as ToSql<VarChar, Pg>>::to_sql(self.as_str(), out)
}
}
Expand Down Expand Up @@ -1568,7 +1568,7 @@ impl ResourceCategory {
}

impl ToSql<VarChar, Pg> for ResourceCategory {
fn to_sql<W: std::io::Write>(&self, out: &mut Output<Pg>) -> serialize::Result {
fn to_sql(&self, out: &mut Output<Pg>) -> serialize::Result {
<str as ToSql<VarChar, Pg>>::to_sql(self.as_str(), out)
}
}
Expand Down
3 changes: 0 additions & 3 deletions diesel-sentry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ pub struct SentryConnection<C: Connection> {
info: ConnectionInfo,
}

// Need this so that ConnectionManager can impl ManageConnection
unsafe impl<C: Connection> Send for SentryConnection<C> {}

impl<C: Connection> Deref for SentryConnection<C> {
type Target = C;
fn deref(&self) -> &Self::Target {
Expand Down

0 comments on commit bcd77ba

Please sign in to comment.