Skip to content

Commit 300bd93

Browse files
authored
style: make clippy happy (#396)
Signed-off-by: hi-rustin <rustin.liu@gmail.com> Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 70fc2c5 commit 300bd93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

console-subscriber/src/stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ impl AsyncOpStats {
312312
pub(crate) fn task_id(&self) -> Option<u64> {
313313
let id = self.task_id.load();
314314
if id > 0 {
315-
Some(id as u64)
315+
Some(id)
316316
} else {
317317
None
318318
}

xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn gen_proto() -> Result<()> {
7474
.build_server(true)
7575
.emit_rerun_if_changed(false)
7676
.protoc_arg("--experimental_allow_proto3_optional")
77-
.out_dir(&out_dir)
77+
.out_dir(out_dir)
7878
.compile(&proto_files[..], &[proto_dir])
7979
.context("failed to compile protobuf files")
8080
}

0 commit comments

Comments
 (0)