Skip to content

chore: bump edition for all crates to 2024 #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 7, 2025
Merged

chore: bump edition for all crates to 2024 #163

merged 4 commits into from
Jul 7, 2025

Conversation

imor
Copy link
Contributor

@imor imor commented Jul 3, 2025

This PR:

  • Bumped Cargo.toml edition to 2024 for all crates
  • Fixed any compiler errors after the bump.
  • Ran cargo fmt

@imor imor requested a review from a team as a code owner July 3, 2025 12:47
@@ -277,7 +277,7 @@ pub async fn read_all_pipelines(
/// Helper function to check if an sqlx error is a duplicate pipeline constraint violation
pub fn is_duplicate_pipeline_error(err: &sqlx::Error) -> bool {
match err {
sqlx::Error::Database(ref db_err) => {
sqlx::Error::Database(db_err) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling out a few places where upgrading the edition caused compiler errors to make it easy to review. The rest of the noise is mostly due to clippy warning fixes or cargo fmt changes.

Comment on lines +105 to +107
unsafe {
std::env::set_var("RUST_LOG", "info");
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed due to edition update.

Comment on lines +105 to +107
unsafe {
std::env::set_var("RUST_LOG", "info");
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed due to edition update.

std::env::set_var("RUST_LOG", "info");
unsafe {
std::env::set_var("RUST_LOG", "info");
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed due to edition update.

Comment on lines +19 to +23
let state_store = init_state_store(
replicator_config.pipeline.id,
replicator_config.pipeline.pg_connection.clone(),
)
.await?;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed due to edition update.

pub async fn migrate_state_store(connection_config: PgConnectionConfig) -> Result<(), sqlx::Error> {
pub async fn migrate_state_store(
connection_config: &PgConnectionConfig,
) -> Result<(), sqlx::Error> {
let options: PgConnectOptions = connection_config.with_db();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed due to edition update.

@imor imor requested a review from iambriccardo July 5, 2025 04:44
@imor imor merged commit 695ca91 into main Jul 7, 2025
7 of 8 checks passed
@imor imor deleted the rs/bump-editions branch July 7, 2025 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants