diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 02d3ba3..73408b6 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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` @@ -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 }} @@ -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}}" diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7622ada..ac41b70 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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: diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 35e2cc4..7668c3f 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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: | diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index e05a510..2ef0d38 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -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: @@ -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 diff --git a/src/client.rs b/src/client.rs index 7835fa2..251bbf6 100644 --- a/src/client.rs +++ b/src/client.rs @@ -72,7 +72,7 @@ impl DuneClient { .map(|p| (p.key, p.value)) .collect::>(); let request_url = format!("{BASE_URL}/{route}"); - debug!("POST to {} with parameters {:?}", route, ¶ms); + debug!("POST to {} with parameters {:?}", route, params); let client = reqwest::Client::new(); client .post(&request_url) @@ -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 { 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) @@ -98,7 +98,7 @@ impl DuneClient { /// Internal PATCH request handler with JSON body async fn _patch(&self, route: &str, body: serde_json::Value) -> Result { 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) @@ -111,7 +111,7 @@ impl DuneClient { /// Internal GET request handler for arbitrary routes async fn _get_url(&self, route: &str) -> Result { 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) @@ -136,7 +136,7 @@ impl DuneClient { .json::() .await .map_err(DuneRequestError::from)?; - error!("request error {:?}", &err); + error!("request error {:?}", err); Err(DuneRequestError::from(err)) } } @@ -144,7 +144,7 @@ impl DuneClient { /// Internal DELETE request handler async fn _delete(&self, route: &str) -> Result { let request_url = format!("{BASE_URL}/{route}"); - debug!("DELETE {}", &request_url); + debug!("DELETE {}", request_url); let client = reqwest::Client::new(); client .delete(&request_url) @@ -181,7 +181,7 @@ impl DuneClient { .json::() .await .map_err(DuneRequestError::from)?; - error!("request error {:?}", &err); + error!("request error {:?}", err); Err(DuneRequestError::from(err)) } }