Skip to content
This repository was archived by the owner on Dec 24, 2024. It is now read-only.

Commit 00ecda3

Browse files
committed
compiles
1 parent 20f0ff1 commit 00ecda3

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

Diff for: interfaces/src/types.rs

-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,6 @@ impl ByteReadable for Dimension {
666666
pub type Position = BlockLocation;
667667

668668
impl ByteReadable for Position {
669-
///
670669
fn read_from_bytes(byte_reader: &mut ByteReader) -> Self {
671670
let val: u64 = byte_reader.read();
672671

Diff for: src/bootstrap/storage.rs

+1
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ impl UserCache {
335335

336336
let mut file = OpenOptions::new()
337337
.create(true)
338+
.truncate(true)
338339
.append(false)
339340
.write(true)
340341
.open(&self.file_path)

Diff for: src/client/processor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<'a, I: InterfaceOut> SimpleInterfaceIn<'a, I> {
4747
actions: &'a mut ActionState,
4848
global: &'a mut GlobalState,
4949
out: &'a mut I,
50-
) -> SimpleInterfaceIn<'a, I> {
50+
) -> Self {
5151
SimpleInterfaceIn {
5252
global,
5353
local,

Diff for: src/client/timing.rs

-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,3 @@ pub enum Increment<T> {
33
InProgress,
44
}
55

6-
/// Tasks which can be done incrementally. Used in pathfinding
7-
pub trait Incremental<T> {
8-
/// complete an iteration. Returns Some(T) when it is finished
9-
fn iterate(&mut self) -> Increment<T>;
10-
}

Diff for: src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
warnings,
1010
clippy::complexity,
1111
clippy::correctness,
12-
clippy::pedantic,
1312
clippy::perf,
1413
clippy::style,
1514
clippy::suspicious,
@@ -51,7 +50,8 @@
5150
clippy::cast_precision_loss,
5251
clippy::cast_possible_wrap,
5352
clippy::default_trait_access,
54-
clippy::match_bool
53+
clippy::match_bool,
54+
dead_code
5555
)]
5656

5757
// TODO: uncomment these

0 commit comments

Comments
 (0)