You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//! This file serves as an entry point for running all the RSS Gen (rss-gen) examples, demonstrating logging levels, formats, macros, and library functionality.
7
-
8
-
#![allow(missing_docs)]
6
+
//! This module serves as an entry point for running all the RSS Gen (rss-gen) examples,
7
+
//! demonstrating various aspects of the library including logging levels, formats,
8
+
//! macros, and core functionality.
9
9
10
10
mod example_data;
11
11
mod example_error;
@@ -15,20 +15,24 @@ mod example_macros;
15
15
mod example_parser;
16
16
mod example_validator;
17
17
18
-
/// Entry point to run all RSS Gen examples.
18
+
use std::error::Error;
19
+
20
+
/// Runs all RSS Gen examples.
19
21
///
20
-
/// This function calls all the individual examples for log levels, log formats, macros, and library functionality.
21
-
fnmain(){
22
+
/// This function sequentially executes all individual examples, demonstrating
23
+
/// various features and capabilities of the RSS Gen library.
24
+
fnmain() -> Result<(),Box<dynError>>{
22
25
println!("\n🦀 Running RSS Gen (rss-gen) Examples 🦀");
23
26
24
-
// Run the example modules.
25
-
let _ = example_data::main();
26
-
let _ = example_error::main();
27
-
example_generator::main();
28
-
example_lib::main();
29
-
let _ = example_macros::main();
30
-
example_parser::main();
31
-
example_validator::main();
27
+
// Run the example modules
28
+
example_data::main()?;
29
+
example_error::main()?;
30
+
example_generator::main()?;
31
+
example_lib::main()?;
32
+
example_macros::main()?;
33
+
example_parser::main()?;
34
+
example_validator::main()?;
32
35
33
-
println!("\n🎉 All RustLogs examples completed successfully!\n");
36
+
println!("\n🎉 All RSS Gen examples completed successfully!\n");
0 commit comments