Skip to content

Commit

Permalink
style: make clippy happy (#396)
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <rustin.liu@gmail.com>

Signed-off-by: hi-rustin <rustin.liu@gmail.com>
  • Loading branch information
hi-rustin authored and hawkw committed Sep 29, 2023
1 parent ac795ed commit 5b7e00a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion console-subscriber/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ impl AsyncOpStats {
pub(crate) fn task_id(&self) -> Option<u64> {
let id = self.task_id.load();
if id > 0 {
Some(id as u64)
Some(id)
} else {
None
}
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn gen_proto() -> Result<()> {
.build_server(true)
.emit_rerun_if_changed(false)
.protoc_arg("--experimental_allow_proto3_optional")
.out_dir(&out_dir)
.out_dir(out_dir)
.compile(&proto_files[..], &[proto_dir])
.context("failed to compile protobuf files")
}

0 comments on commit 5b7e00a

Please sign in to comment.