mirror of
				https://github.com/lov3b/ecb-rates.git
				synced 2025-11-04 07:10:18 +01:00 
			
		
		
		
	func ref
This commit is contained in:
		
							
								
								
									
										10
									
								
								src/main.rs
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								src/main.rs
									
									
									
									
									
								
							@@ -82,12 +82,12 @@ async fn main() -> ExitCode {
 | 
				
			|||||||
                    });
 | 
					                    });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if cli.compact {
 | 
					            let to_string_json = if cli.compact {
 | 
				
			||||||
                serde_json::to_string(&json_values)
 | 
					                serde_json::to_string
 | 
				
			||||||
            } else {
 | 
					            } else {
 | 
				
			||||||
                serde_json::to_string_pretty(&json_values)
 | 
					                serde_json::to_string_pretty
 | 
				
			||||||
            }
 | 
					            };
 | 
				
			||||||
            .expect("Failed to parse content as JSON")
 | 
					            to_string_json(&json_values).expect("Failed to parse content as JSON")
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        FormatOption::Plain => parsed
 | 
					        FormatOption::Plain => parsed
 | 
				
			||||||
            .iter()
 | 
					            .iter()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user