Skip to content

Unwrap cause panic

https://gitlab.com/calmiralinux/console_apps/-/blame/master/src/ver/src/main.rs#L27
unwrap() будеь генерить panic и выводить чтото типа этого:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { inner: ErrorInner { kind: Wanted { expected: "an equals", found: "a newline" }, line: Some(0), col: 5, at: Some(5), message: "", key: [] } }', src/main.rs:17:41
Edited by Sergey