Skip to content

Commit 7ee463d

Browse files
committed
ref: clippy
1 parent 324ed99 commit 7ee463d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/cli/src/command/bundle.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub fn bundle(path: Option<String>, out: Option<String>) {
2323
for feature in parser.features {
2424
feature.data_types.iter().for_each(|data_type| {
2525
let mut buf = Vec::new();
26-
if let Ok(_) = data_type.encode(&mut buf) {
26+
if data_type.encode(&mut buf).is_ok() {
2727
let path = format!(
2828
"{}/{}_{}_{}.pb",
2929
&out_path,
@@ -40,7 +40,7 @@ pub fn bundle(path: Option<String>, out: Option<String>) {
4040

4141
feature.flow_types.iter().for_each(|flow_type| {
4242
let mut buf = Vec::new();
43-
if let Ok(_) = flow_type.encode(&mut buf) {
43+
if flow_type.encode(&mut buf).is_ok() {
4444
let path = format!(
4545
"{}/{}_{}_{}.pb",
4646
&out_path,
@@ -57,7 +57,7 @@ pub fn bundle(path: Option<String>, out: Option<String>) {
5757

5858
feature.runtime_functions.iter().for_each(|function| {
5959
let mut buf = Vec::new();
60-
if let Ok(_) = function.encode(&mut buf) {
60+
if function.encode(&mut buf).is_ok() {
6161
let path = format!(
6262
"{}/{}_{}_{}.pb",
6363
&out_path,

0 commit comments

Comments
 (0)