Skip to content

Commit 2149cb8

Browse files
committed
Bump to Rust 1.40.0
1 parent 5ba7d01 commit 2149cb8

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# Breaking changes like this might be mixed into the future stable versions.
1515
# https://github.com/rust-lang/rustfmt/pull/3632
1616
channel:
17-
- 1.39.0
17+
- 1.40.0
1818
- stable
1919

2020
name: Rustfmt (${{ matrix.channel }})
@@ -65,7 +65,7 @@ jobs:
6565
- name: rust-toolchain
6666
uses: actions-rs/toolchain@v1
6767
with:
68-
toolchain: 1.39.0-x86_64-unknown-linux-gnu
68+
toolchain: 1.40.0-x86_64-unknown-linux-gnu
6969
default: true
7070
profile: default
7171

@@ -98,10 +98,10 @@ jobs:
9898
matrix:
9999
toolchain:
100100
# `x86_64-pc-windows-gnu` is tier 1 **for now**.
101-
- 1.39.0-x86_64-pc-windows-msvc
102-
- 1.39.0-x86_64-pc-windows-gnu
103-
- 1.39.0-x86_64-apple-darwin
104-
- 1.39.0-x86_64-unknown-linux-gnu
101+
- 1.40.0-x86_64-pc-windows-msvc
102+
- 1.40.0-x86_64-pc-windows-gnu
103+
- 1.40.0-x86_64-apple-darwin
104+
- 1.40.0-x86_64-unknown-linux-gnu
105105
- stable-x86_64-pc-windows-msvc
106106
- stable-x86_64-pc-windows-gnu
107107
- stable-x86_64-apple-darwin
@@ -111,19 +111,19 @@ jobs:
111111
- beta-x86_64-apple-darwin
112112
- beta-x86_64-unknown-linux-gnu
113113
include:
114-
- toolchain: 1.39.0-x86_64-pc-windows-msvc
114+
- toolchain: 1.40.0-x86_64-pc-windows-msvc
115115
features: --no-default-features
116116
dep_tests: true
117117
os: windows-latest
118-
- toolchain: 1.39.0-x86_64-pc-windows-gnu
118+
- toolchain: 1.40.0-x86_64-pc-windows-gnu
119119
features: --no-default-features
120120
dep_tests: false
121121
os: windows-latest
122-
- toolchain: 1.39.0-x86_64-apple-darwin
122+
- toolchain: 1.40.0-x86_64-apple-darwin
123123
features: --all-features
124124
dep_tests: true
125125
os: macOS-latest
126-
- toolchain: 1.39.0-x86_64-unknown-linux-gnu
126+
- toolchain: 1.40.0-x86_64-unknown-linux-gnu
127127
features: --all-features
128128
dep_tests: true
129129
os: ubuntu-18.04

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
**TODO** もう少し詳しく書く
2121

2222
- AtCoder 2019年言語アップデート後の環境向け
23-
- Rust 1.39.0
23+
- Rust 1.40.0
2424
- AtCoderジャッジサーバ環境の構築用
2525

2626

examples/abc151-d.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn main() {
4646
.iter()
4747
.flat_map(|&p| &neighbors[p])
4848
.copied()
49-
.filter(|&p| mem::replace(&mut unvisited[p], false))
49+
.filter(|&p| mem::take(&mut unvisited[p]))
5050
.collect();
5151
!queue.is_empty()
5252
})

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.39.0
1+
1.40.0

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy