Skip to content
Snippets Groups Projects
Commit 7fe5368b authored by Éloïs's avatar Éloïs
Browse files

[doc] dewif:read: replace explicit expect by `?`

parent 08533b60
No related branches found
No related tags found
No related merge requests found
Pipeline #8159 passed
...@@ -53,8 +53,7 @@ ...@@ -53,8 +53,7 @@
//! //!
//! // Read DEWIF file content //! // Read DEWIF file content
//! // If the file content is correct, we get a key-pair iterator. //! // If the file content is correct, we get a key-pair iterator.
//! let mut key_pair_iter = read_dewif_file_content(dewif_file_content, encryption_passphrase) //! let mut key_pair_iter = read_dewif_file_content(dewif_file_content, encryption_passphrase)?;
//! .expect("invalid DEWIF file.");
//! //!
//! // Get first key-pair //! // Get first key-pair
//! let key_pair = key_pair_iter //! let key_pair = key_pair_iter
...@@ -77,7 +76,8 @@ ...@@ -77,7 +76,8 @@
//! assert_eq!( //! assert_eq!(
//! "nCWl7jtCa/nCMKKnk2NJN7daVxd/ER+e1wsFbofdh/pUvDuHxFaa7S5eUMGiqPTJ4uJQOvrmF/BOfOsYIoI2Bg==", //! "nCWl7jtCa/nCMKKnk2NJN7daVxd/ER+e1wsFbofdh/pUvDuHxFaa7S5eUMGiqPTJ4uJQOvrmF/BOfOsYIoI2Bg==",
//! &sig.to_string() //! &sig.to_string()
//! ) //! );
//! # Ok::<(), dup_crypto::dewif::DewifReadError>(())
//! ``` //! ```
//! //!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment