Skip to content

Commit

Permalink
Merge pull request #335 from danielnorberg/clippy-all-targets
Browse files Browse the repository at this point in the history
clippy --all-targets
  • Loading branch information
yoshidan authored Dec 27, 2024
2 parents 23f350b + 655e6ec commit 520771b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: format check
run: cargo fmt --all -- --check
- name: clippy check
run: cargo clippy -- -D warnings
run: cargo clippy --all-targets -- -D warnings
check-deps:
name: check-deps
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions spanner/tests/change_stream_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ fn init() {
let _ = tracing_subscriber::fmt().with_env_filter(filter).try_init();
}

#[allow(dead_code)]
#[derive(Debug)]
struct ChangeRecord {
pub data_change_record: Vec<DataChangeRecord>,
Expand All @@ -44,6 +45,7 @@ impl TryFromStruct for ChangeRecord {
}
}

#[allow(dead_code)]
#[derive(Debug)]
struct ChildPartitionsRecord {
pub start_timestamp: OffsetDateTime,
Expand All @@ -61,6 +63,7 @@ impl TryFromStruct for ChildPartitionsRecord {
}
}

#[allow(dead_code)]
#[derive(Debug)]
struct ChildPartition {
pub token: String,
Expand All @@ -76,6 +79,7 @@ impl TryFromStruct for ChildPartition {
}
}

#[allow(dead_code)]
#[derive(Debug)]
struct DataChangeRecord {
pub commit_timestamp: OffsetDateTime,
Expand Down
4 changes: 4 additions & 0 deletions spanner/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use google_cloud_spanner::bigdecimal::BigDecimal;

pub const DATABASE: &str = "projects/local-project/instances/test-instance/databases/local-database";

#[allow(dead_code)]
pub struct UserCharacter {
pub user_id: String,
pub character_id: i64,
Expand All @@ -36,6 +37,7 @@ impl TryFromStruct for UserCharacter {
}
}

#[allow(dead_code)]
pub struct UserItem {
pub user_id: String,
pub item_id: i64,
Expand All @@ -54,6 +56,7 @@ impl TryFromStruct for UserItem {
}
}

#[allow(dead_code)]
pub struct UserItemWithHistory {
pub user_id: String,
pub item_id: i64,
Expand All @@ -74,6 +77,7 @@ impl TryFromStruct for UserItemWithHistory {
}
}

#[allow(dead_code)]
pub struct UserItemHistory {
pub user_id: String,
pub item_id: i64,
Expand Down

0 comments on commit 520771b

Please sign in to comment.