Skip to content

Commit

Permalink
Add lint CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pawurb committed Dec 29, 2023
1 parent 78b7077 commit a38306b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: check
- name: lint
with:
command: cargo clippy
- name: Test
env:
DATABASE_URL: postgresql://postgres:secret@localhost:5432/rust_pg_extras
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ pub fn db_settings() -> Vec<DbSetting> {
}

fn read_file(filename: &str) -> String {

fs::read_to_string(format!("src/queries/{}.sql", filename))
.unwrap_or_else(|_| panic!("Error reading the '{}' file", filename))
}
Expand Down

0 comments on commit a38306b

Please sign in to comment.