Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
Expand All @@ -65,7 +65,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand Down Expand Up @@ -94,6 +94,6 @@ jobs:
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Cache Cargo dependencies
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set version from tag
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Cache Cargo dependencies
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Rust nightly
# doc-coverage uses `rustdoc --show-coverage`, which is nightly-only
# (rust-lang/rust#58154). SHA-pin the action to master and select a
Expand Down
14 changes: 7 additions & 7 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl DuneClient {
.map(|p| (p.key, p.value))
.collect::<HashMap<_, _>>();
let request_url = format!("{BASE_URL}/{route}");
debug!("POST to {} with parameters {:?}", route, &params);
debug!("POST to {} with parameters {:?}", route, params);
let client = reqwest::Client::new();
client
.post(&request_url)
Expand All @@ -85,7 +85,7 @@ impl DuneClient {
/// Internal POST request handler with arbitrary JSON body
async fn _post_json(&self, route: &str, body: serde_json::Value) -> Result<Response, Error> {
let request_url = format!("{BASE_URL}/{route}");
debug!("POST to {} with body {:?}", route, &body);
debug!("POST to {} with body {:?}", route, body);
let client = reqwest::Client::new();
client
.post(&request_url)
Expand All @@ -98,7 +98,7 @@ impl DuneClient {
/// Internal PATCH request handler with JSON body
async fn _patch(&self, route: &str, body: serde_json::Value) -> Result<Response, Error> {
let request_url = format!("{BASE_URL}/{route}");
debug!("PATCH to {} with body {:?}", route, &body);
debug!("PATCH to {} with body {:?}", route, body);
let client = reqwest::Client::new();
client
.patch(&request_url)
Expand All @@ -111,7 +111,7 @@ impl DuneClient {
/// Internal GET request handler for arbitrary routes
async fn _get_url(&self, route: &str) -> Result<Response, Error> {
let request_url = format!("{BASE_URL}/{route}");
debug!("GET from {}", &request_url);
debug!("GET from {}", request_url);
let client = reqwest::Client::new();
client
.get(&request_url)
Expand All @@ -136,15 +136,15 @@ impl DuneClient {
.json::<DuneError>()
.await
.map_err(DuneRequestError::from)?;
error!("request error {:?}", &err);
error!("request error {:?}", err);
Err(DuneRequestError::from(err))
}
}

/// Internal DELETE request handler
async fn _delete(&self, route: &str) -> Result<Response, Error> {
let request_url = format!("{BASE_URL}/{route}");
debug!("DELETE {}", &request_url);
debug!("DELETE {}", request_url);
let client = reqwest::Client::new();
client
.delete(&request_url)
Expand Down Expand Up @@ -181,7 +181,7 @@ impl DuneClient {
.json::<DuneError>()
.await
.map_err(DuneRequestError::from)?;
error!("request error {:?}", &err);
error!("request error {:?}", err);
Err(DuneRequestError::from(err))
}
}
Expand Down