Skip to content

Commit 4a94355

Browse files
Merge pull request theseus-rs#136 from theseus-rs/forbid-clippy-allow
chore: forbid clippy allow attributes
2 parents f2f1ad0 + 4c63df4 commit 4a94355

File tree

54 files changed

+77
-80
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+77
-80
lines changed

Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ reqwest-retry = "0.6.1"
5252
reqwest-tracing = "0.5.3"
5353
semver = "1.0.23"
5454
serde = "1.0.207"
55-
serde_json = "1.0.124"
55+
serde_json = "1.0.128"
5656
sha1 = "0.10.6"
5757
sha2 = "0.10.8"
5858
sqlx = { version = "0.8.2", default-features = false, features = ["postgres"] }

examples/archive_async/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![forbid(unsafe_code)]
2+
#![forbid(clippy::allow_attributes)]
23
#![deny(clippy::pedantic)]
34

45
use postgresql_archive::configuration::theseus;

examples/archive_sync/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![forbid(unsafe_code)]
2+
#![forbid(clippy::allow_attributes)]
23
#![deny(clippy::pedantic)]
34

45
use postgresql_archive::blocking::{extract, get_archive};

examples/axum_embedded/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![forbid(unsafe_code)]
2+
#![forbid(clippy::allow_attributes)]
23
#![deny(clippy::pedantic)]
34

45
use anyhow::Result;

examples/diesel_embedded/src/main.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#![forbid(unsafe_code)]
2+
#![forbid(clippy::allow_attributes)]
23
#![deny(clippy::pedantic)]
34

5+
use crate::models::{NewPost, Post};
46
use diesel::r2d2::{ConnectionManager, Pool};
5-
use diesel::PgConnection;
7+
use diesel::{PgConnection, RunQueryDsl, SelectableHelper};
68
use diesel_migrations::{embed_migrations, EmbeddedMigrations, MigrationHarness};
79
use postgresql_embedded::{PostgreSQL, Result, Settings, VersionReq};
10+
811
mod models;
912
pub mod schema;
1013

11-
use self::models::*;
12-
use diesel::prelude::*;
13-
1414
const MIGRATIONS: EmbeddedMigrations = embed_migrations!("./migrations/");
1515
#[tokio::main]
1616
async fn main() -> Result<()> {
@@ -51,6 +51,10 @@ async fn main() -> Result<()> {
5151
postgresql.stop().await
5252
}
5353

54+
/// Create a new post
55+
///
56+
/// # Panics
57+
/// if the post cannot be saved
5458
pub fn create_post(conn: &mut PgConnection, title: &str, body: &str) -> Post {
5559
use crate::schema::posts;
5660

examples/download_progress_bar/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![forbid(unsafe_code)]
2+
#![forbid(clippy::allow_attributes)]
23
#![deny(clippy::pedantic)]
34

45
use anyhow::Result;

examples/embedded_async/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![forbid(unsafe_code)]
2+
#![forbid(clippy::allow_attributes)]
23
#![deny(clippy::pedantic)]
34

45
use postgresql_embedded::{PostgreSQL, Result, Settings, VersionReq};

examples/embedded_sync/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![forbid(unsafe_code)]
2+
#![forbid(clippy::allow_attributes)]
23
#![deny(clippy::pedantic)]
34

45
use postgresql_embedded::blocking::PostgreSQL;

examples/portal_corp_extension/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![forbid(unsafe_code)]
2+
#![forbid(clippy::allow_attributes)]
23
#![deny(clippy::pedantic)]
34

45
use anyhow::Result;

0 commit comments

Comments
 (0)