Skip to content

Commit 773c60b

Browse files
committed
use tomllib
1 parent fc7a19a commit 773c60b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ jobs:
137137
- if: ${{ matrix.msrv == 'MSRV' }}
138138
name: Unify dependencies to MSRV-compatible versions
139139
run: |
140-
import toml
140+
import tomllib
141141
import subprocess
142-
cargo_lock = toml.load("Cargo.lock")
142+
cargo_lock = tomllib.load(open("Cargo.lock", 'rb'))
143143
for pkg in cargo_lock["package"]:
144144
pkg_id = pkg["name"] + ":" + pkg["version"]
145145
if pkg["name"] == "tokio" and pkg["version"] != "1.38.1":

0 commit comments

Comments
 (0)