Skip to content

Commit ccb928f

Browse files
committed
Resolve clippy and wornings
1 parent 6c14114 commit ccb928f

23 files changed

+416
-180
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ jobs:
3535
command: test
3636
args: --release --verbose --workspace --all-features --all-targets
3737

38-
- name: Build docs
39-
run: cargo doc
38+
# - name: Build docs
39+
# run: cargo doc

demo/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl dotrix::Application for Demo {
2727
self.version
2828
}
2929

30-
fn app_name<'a>(&'a self) -> &'a str {
30+
fn app_name(&self) -> &str {
3131
&self.application_name
3232
}
3333

demo/scene.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ impl dotrix::Task for SpawnEntities {
5959

6060
log::info!("Spawn scene entities: {:?}", self.spawned);
6161
}
62-
Scene::default()
62+
Scene
6363
}
6464
}

src/graphics/frame.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl Task for CreateFrame {
7272
let now = Instant::now();
7373
let delta = self
7474
.last_frame
75-
.replace(now.clone())
75+
.replace(now)
7676
.map(|i| i.elapsed())
7777
.unwrap_or_else(|| Duration::from_secs_f32(1.0 / self.fps_request.unwrap_or(60.0)));
7878

0 commit comments

Comments
 (0)