Skip to content

Commit e8cf8a5

Browse files
committed
Move to Rust stable
1 parent ee5abfb commit e8cf8a5

File tree

7 files changed

+5
-18
lines changed

7 files changed

+5
-18
lines changed

.cargo/config_fast_builds.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ rustflags = [
3030
[target.x86_64-pc-windows-msvc]
3131
linker = "rust-lld.exe" # Use LLD Linker
3232
rustflags = [
33-
"-Zshare-generics=n",
33+
"-Zshare-generics=n", # (Nightly)
3434
"-Zthreads=0", # (Nightly) Use improved multithreading with the recommended amount of threads.
3535
]
3636

.github/workflows/ci.yml

-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
types: [ labeled, opened, synchronize, reopened ]
66
env:
77
CARGO_TERM_COLOR: always
8-
NIGHTLY_TOOLCHAIN: nightly
98
# Sparse cargo registry for faster updates
109
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
1110

@@ -15,8 +14,6 @@ jobs:
1514
steps:
1615
- uses: actions/checkout@v3
1716
- uses: dtolnay/rust-toolchain@master
18-
with:
19-
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
2017
- name: Cache Cargo build files
2118
uses: Leafwing-Studios/cargo-cache@v1
2219
- name: Install alsa and udev
@@ -32,7 +29,6 @@ jobs:
3229
- uses: actions/checkout@v3
3330
- uses: dtolnay/rust-toolchain@master
3431
with:
35-
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
3632
components: rustfmt, clippy
3733
- name: Cache Cargo build files
3834
uses: Leafwing-Studios/cargo-cache@v1

.github/workflows/release.yaml

-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ env:
1212
GAME_OSX_APP_NAME: Foxtrot
1313

1414
CARGO_TERM_COLOR: always
15-
NIGHTLY_TOOLCHAIN: nightly
1615
# Sparse cargo registry for faster updates
1716
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
1817

@@ -38,15 +37,13 @@ jobs:
3837
- name: Install rust toolchain for Apple Silicon
3938
uses: dtolnay/rust-toolchain@master
4039
with:
41-
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
4240
target: aarch64-apple-darwin
4341
- name: Build release for Apple Silicon
4442
run: |
4543
SDKROOT=$(xcrun -sdk macosx --show-sdk-path) cargo build --release --target=aarch64-apple-darwin
4644
- name: Install rust toolchain for Apple x86
4745
uses: dtolnay/rust-toolchain@master
4846
with:
49-
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
5047
target: x86_64-apple-darwin
5148
- name: Build release for x86 Apple
5249
run: |
@@ -84,8 +81,6 @@ jobs:
8481
uses: actions/checkout@v3
8582
- name: Install rust toolchain
8683
uses: dtolnay/rust-toolchain@master
87-
with:
88-
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
8984
- name: Install Dependencies
9085
run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev
9186
- name: Build release
@@ -119,8 +114,6 @@ jobs:
119114
uses: actions/checkout@v3
120115
- name: Install rust toolchain
121116
uses: dtolnay/rust-toolchain@master
122-
with:
123-
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
124117
- name: Install dotnet
125118
uses: actions/setup-dotnet@v3
126119
with:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ blender_assets.cats.txt*
1212
trace-*.json
1313

1414
.cargo/config.toml
15+
rust-toolchain.toml

rust-toolchain.toml

-3
This file was deleted.

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(let_chains)]
21
// These two generate a lot of false positives for Bevy systems
32
#![allow(clippy::too_many_arguments, clippy::type_complexity)]
43

src/player_control/camera/rig.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ fn set_look_at(rig: &mut Rig, camera: &IngameCamera) {
8383
}
8484

8585
fn set_position(rig: &mut Rig, camera: &IngameCamera) {
86-
let target = if camera.kind != IngameCameraKind::FirstPerson
87-
&& let Some(secondary_target) = camera.secondary_target
86+
let target = if let Some(secondary_target) = camera
87+
.secondary_target
88+
.filter(|_| camera.kind != IngameCameraKind::FirstPerson)
8889
{
8990
secondary_target
9091
} else {

0 commit comments

Comments
 (0)