Rust Error Return Check Policy

Posted 金庆

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Rust Error Return Check Policy相关的知识,希望对你有一定的参考价值。

Rust Error Return Check Policy

From: https://www.ockam.io/learn/how-to-guides/contributing/ockam_rust_code_standard

  • Never use unwrap on Result. If the type is Err, it will panic and crash the program. The only exception is if it has already been checked for error previously or in test code.
  • Never use unwrap on Option for the same reason if the type is None as Result is Err.

以上是关于Rust Error Return Check Policy的主要内容,如果未能解决你的问题,请参考以下文章

RUST 游戏启动不了 每次都是 Rust Launcher Error: Loading Error - Start Service failed (1450)

在steam上启动rust的时候提示rust launcher error launcherfailure

Rust SSL error 怎么解决

Rust SSL error 怎么解决

Rust SSL error 怎么解决

Rust SSL error 怎么解决