Skip to content

Commit

Permalink
use tomllib
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Oct 25, 2024
1 parent fc7a19a commit 773c60b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ jobs:
- if: ${{ matrix.msrv == 'MSRV' }}
name: Unify dependencies to MSRV-compatible versions
run: |
import toml
import tomllib
import subprocess
cargo_lock = toml.load("Cargo.lock")
cargo_lock = tomllib.load(open("Cargo.lock", 'rb'))
for pkg in cargo_lock["package"]:
pkg_id = pkg["name"] + ":" + pkg["version"]
if pkg["name"] == "tokio" and pkg["version"] != "1.38.1":
Expand Down

0 comments on commit 773c60b

Please sign in to comment.