File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments