Update to Rust 1.53.0
This commit is contained in:
parent
a48a6f5a99
commit
9ae87f9340
|
@ -11,7 +11,7 @@ jobs:
|
|||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
# TODO: refactor toolchain version
|
||||
toolchain: 1.49.0
|
||||
toolchain: 1.53.0
|
||||
components: clippy, rustfmt
|
||||
default: true
|
||||
- name: Install dependencies
|
||||
|
@ -49,7 +49,7 @@ jobs:
|
|||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: 1.49.0
|
||||
toolchain: 1.53.0
|
||||
components: clippy, rustfmt
|
||||
default: true
|
||||
- name: Build binary
|
||||
|
@ -83,7 +83,7 @@ jobs:
|
|||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: 1.49.0
|
||||
toolchain: 1.53.0
|
||||
components: clippy, rustfmt
|
||||
default: true
|
||||
- name: Build binary
|
||||
|
@ -128,7 +128,7 @@ jobs:
|
|||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
# TODO: refactor toolchain version
|
||||
toolchain: 1.49.0
|
||||
toolchain: 1.53.0
|
||||
components: clippy, rustfmt
|
||||
default: true
|
||||
- name: Install wasm-pack
|
||||
|
|
|
@ -67,7 +67,7 @@ from [GitHub Actions](https://actions-badge.atrox.dev/iceiix/stevenarella/goto?r
|
|||
|
||||
## Dependencies
|
||||
|
||||
Requires Rust stable version 1.49.0 or newer.
|
||||
Requires Rust stable version 1.53.0 or newer.
|
||||
|
||||
**Debian/Ubuntu**
|
||||
|
||||
|
|
|
@ -5883,7 +5883,9 @@ mod tests {
|
|||
}
|
||||
|
||||
fn can_burn<W: WorldAccess>(world: &W, pos: Position) -> bool {
|
||||
matches!(world.get_block(pos), Block::Planks { .. }
|
||||
matches!(
|
||||
world.get_block(pos),
|
||||
Block::Planks { .. }
|
||||
| Block::DoubleWoodenSlab { .. }
|
||||
| Block::WoodenSlab { .. }
|
||||
| Block::FenceGate { .. }
|
||||
|
@ -5919,11 +5921,15 @@ fn can_burn<W: WorldAccess>(world: &W, pos: Position) -> bool {
|
|||
| Block::Vine { .. }
|
||||
| Block::CoalBlock { .. }
|
||||
| Block::HayBlock { .. }
|
||||
| Block::Carpet { .. })
|
||||
| Block::Carpet { .. }
|
||||
)
|
||||
}
|
||||
|
||||
fn is_snowy<W: WorldAccess>(world: &W, pos: Position) -> bool {
|
||||
matches!(world.get_block(pos.shift(Direction::Up)), Block::Snow { .. } | Block::SnowLayer { .. })
|
||||
matches!(
|
||||
world.get_block(pos.shift(Direction::Up)),
|
||||
Block::Snow { .. } | Block::SnowLayer { .. }
|
||||
)
|
||||
}
|
||||
|
||||
fn can_connect_sides<F: Fn(Block) -> bool, W: WorldAccess>(
|
||||
|
@ -5945,7 +5951,9 @@ fn can_connect<F: Fn(Block) -> bool, W: WorldAccess>(world: &W, pos: Position, f
|
|||
}
|
||||
|
||||
fn can_connect_fence(block: Block) -> bool {
|
||||
matches!(block, Block::Fence { .. }
|
||||
matches!(
|
||||
block,
|
||||
Block::Fence { .. }
|
||||
| Block::SpruceFence { .. }
|
||||
| Block::BirchFence { .. }
|
||||
| Block::JungleFence { .. }
|
||||
|
@ -5956,14 +5964,18 @@ fn can_connect_fence(block: Block) -> bool {
|
|||
| Block::BirchFenceGate { .. }
|
||||
| Block::JungleFenceGate { .. }
|
||||
| Block::DarkOakFenceGate { .. }
|
||||
| Block::AcaciaFenceGate { .. })
|
||||
| Block::AcaciaFenceGate { .. }
|
||||
)
|
||||
}
|
||||
|
||||
fn can_connect_glasspane(block: Block) -> bool {
|
||||
matches!(block, Block::Glass { .. }
|
||||
matches!(
|
||||
block,
|
||||
Block::Glass { .. }
|
||||
| Block::StainedGlass { .. }
|
||||
| Block::GlassPane { .. }
|
||||
| Block::StainedGlassPane { .. })
|
||||
| Block::StainedGlassPane { .. }
|
||||
)
|
||||
}
|
||||
|
||||
fn can_connect_redstone<W: WorldAccess>(world: &W, pos: Position, dir: Direction) -> RedstoneSide {
|
||||
|
@ -6198,7 +6210,12 @@ fn door_collision(facing: Direction, hinge: Side, open: bool) -> Vec<Aabb3<f64>>
|
|||
}
|
||||
|
||||
fn update_repeater_state<W: WorldAccess>(world: &W, pos: Position, facing: Direction) -> bool {
|
||||
let f = |dir| matches!(world.get_block(pos.shift(dir)), Block::RepeaterPowered { .. });
|
||||
let f = |dir| {
|
||||
matches!(
|
||||
world.get_block(pos.shift(dir)),
|
||||
Block::RepeaterPowered { .. }
|
||||
)
|
||||
};
|
||||
|
||||
f(facing.clockwise()) || f(facing.counter_clockwise())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue