diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12159fd..eec2c03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,7 +73,7 @@ jobs: override: true - name: Setup PostgreSQL - uses: ikalnytskyi/action-setup-postgres@v6 + uses: ikalnytskyi/action-setup-postgres@v7 - id: detect_host run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 827062a..049bd96 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -77,7 +77,7 @@ jobs: override: true - name: Setup PostgreSQL - uses: ikalnytskyi/action-setup-postgres@v6 + uses: ikalnytskyi/action-setup-postgres@v7 id: postgres - name: Set ROCKET_DATABASE_URL @@ -127,7 +127,7 @@ jobs: override: true - name: Setup PostgreSQL - uses: ikalnytskyi/action-setup-postgres@v6 + uses: ikalnytskyi/action-setup-postgres@v7 id: postgres - run: | diff --git a/src/storage/sql/mod.rs b/src/storage/sql/mod.rs index cb359a4..df421c1 100644 --- a/src/storage/sql/mod.rs +++ b/src/storage/sql/mod.rs @@ -303,6 +303,7 @@ impl Storage for SqlStorage { Ok(snippet) } + #[allow(dead_code)] async fn update(&self, snippet: &Snippet) -> Result { // load the snippet from the db to check if we need to update anything let persisted_state = self.get(&snippet.id).await?; diff --git a/src/web/tracing.rs b/src/web/tracing.rs index 8d49c2d..1c660e4 100644 --- a/src/web/tracing.rs +++ b/src/web/tracing.rs @@ -64,6 +64,7 @@ impl Fairing for RequestIdHeader { /// A natural point of integration with Rocket is a fairing, which allows us to /// execute some code before and after each HTTP request, which is exactly what /// we need for determining the boundaries of a request span. +#[allow(dead_code)] pub struct RequestSpan; // TODO: Now that Rocket is using async internally, this is not guaranteed to