diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5e697198..f6bb5f6e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: name: Lint Rust runs-on: ubuntu-latest env: - RUSTUP_TOOLCHAIN: 1.71.0 + RUSTUP_TOOLCHAIN: 1.72.0 steps: - uses: actions/checkout@v3 - name: Install rustfmt and clippy diff --git a/python/src/deltachat/account.py b/python/src/deltachat/account.py index 8272dc965..fde031564 100644 --- a/python/src/deltachat/account.py +++ b/python/src/deltachat/account.py @@ -427,7 +427,7 @@ class Account: assert dc_chatlist != ffi.NULL chatlist = [] - for i in range(0, lib.dc_chatlist_get_cnt(dc_chatlist)): + for i in range(lib.dc_chatlist_get_cnt(dc_chatlist)): chat_id = lib.dc_chatlist_get_chat_id(dc_chatlist, i) chatlist.append(Chat(self, chat_id)) return chatlist diff --git a/python/src/deltachat/cutil.py b/python/src/deltachat/cutil.py index ad9810219..f907166b9 100644 --- a/python/src/deltachat/cutil.py +++ b/python/src/deltachat/cutil.py @@ -15,7 +15,7 @@ def as_dc_charpointer(obj): def iter_array(dc_array_t, constructor: Callable[[int], T]) -> Generator[T, None, None]: - for i in range(0, lib.dc_array_get_cnt(dc_array_t)): + for i in range(lib.dc_array_get_cnt(dc_array_t)): yield constructor(lib.dc_array_get_id(dc_array_t, i)) diff --git a/python/tests/bench_test_setup.py b/python/tests/bench_test_setup.py index 5dc5e3877..ef750550f 100644 --- a/python/tests/bench_test_setup.py +++ b/python/tests/bench_test_setup.py @@ -15,6 +15,6 @@ class TestEmpty: def test_prepare_setup_measurings(self, acfactory): acfactory.get_online_accounts(BENCH_NUM) - @pytest.mark.parametrize("num", range(0, BENCH_NUM + 1)) + @pytest.mark.parametrize("num", range(BENCH_NUM + 1)) def test_setup_online_accounts(self, acfactory, num): acfactory.get_online_accounts(num) diff --git a/scripts/coredeps/install-rust.sh b/scripts/coredeps/install-rust.sh index 8181cc991..20e72611b 100755 --- a/scripts/coredeps/install-rust.sh +++ b/scripts/coredeps/install-rust.sh @@ -7,7 +7,7 @@ set -euo pipefail # # Avoid using rustup here as it depends on reading /proc/self/exe and # has problems running under QEMU. -RUST_VERSION=1.68.0 +RUST_VERSION=1.72.0 ARCH="$(uname -m)" test -f "/lib/libc.musl-$ARCH.so.1" && LIBC=musl || LIBC=gnu diff --git a/scripts/zig-musl-check.sh b/scripts/zig-musl-check.sh index c164034b0..89c9b5bf6 100755 --- a/scripts/zig-musl-check.sh +++ b/scripts/zig-musl-check.sh @@ -9,7 +9,7 @@ set -e unset RUSTFLAGS # Pin Rust version to avoid uncontrolled changes in the compiler and linker flags. -export RUSTUP_TOOLCHAIN=1.71.0 +export RUSTUP_TOOLCHAIN=1.72.0 ZIG_VERSION=0.11.0 diff --git a/scripts/zig-rpc-server.sh b/scripts/zig-rpc-server.sh index 165169237..1f35b3fd1 100755 --- a/scripts/zig-rpc-server.sh +++ b/scripts/zig-rpc-server.sh @@ -8,7 +8,7 @@ set -e unset RUSTFLAGS # Pin Rust version to avoid uncontrolled changes in the compiler and linker flags. -export RUSTUP_TOOLCHAIN=1.71.0 +export RUSTUP_TOOLCHAIN=1.72.0 ZIG_VERSION=0.11.0