If im not mistaken, extern crate is no longer needed. You can just "use chrono" as if it was an std crate or a module if it's installed Thx for the great content!
Hi! The .ok() value you use at the end is unnecessary actually! You could just call unwrap() on the Result .ok() converts a result into an Option which is useful in when you are using filter_map or flat_map so that you can discard bad values in a Vec. For instance, you could flat_map or filter_map over a Vec of strings you want converted to i32 via the parse() function. You can call .ok() after the parse to convert to Option which is what flat_map and filter_map will take.
Check out the full Rust playlist for more Rust programming videos! 🦀 ➡➡➡➡ th-cam.com/play/PLDbRgZ0OOEpUkWDGqp91ODn0dk7LPBAUL.html
thank you, I was learning rust by doing a mini project and the truth is that you are very helpful!
If im not mistaken, extern crate is no longer needed. You can just "use chrono" as if it was an std crate or a module if it's installed
Thx for the great content!
Thank you for the tip!! I figured it was needed based on some older content then. Rust on!! 🦀🦀
thank you for the video, watched a whole thing in one sitting!
Thanks for your support!! I'm glad you benefitted from this series! 🙂
That was really useful, thank you.
Hi! The .ok() value you use at the end is unnecessary actually! You could just call unwrap() on the Result .ok() converts a result into an Option which is useful in when you are using filter_map or flat_map so that you can discard bad values in a Vec. For instance, you could flat_map or filter_map over a Vec of strings you want converted to i32 via the parse() function. You can call .ok() after the parse to convert to Option which is what flat_map and filter_map will take.
Thank you for sharing your knowledge! I'm still picking up tips and tricks each and every day 🙂
Opt = optimized ? Im not sure.