Advertisement
Guest User

Untitled

a guest
May 29th, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. src/lib.rs:27:1: 38:2 error: not all control paths return a value [E0269]
  2. src/lib.rs:27 pub fn multihash(wanthash: hashtypes, input: Vec<u8>) -> Result<Vec<u8>, String> {
  3. src/lib.rs:28 let ssl_hash: Option<Type> = match wanthash {
  4. src/lib.rs:29 hashtypes::sha1 => Some(Type::SHA1),
  5. src/lib.rs:30 hashtypes::sha2_256 => Some(Type::SHA256),
  6. src/lib.rs:31 hashtypes::sha2_512 => Some(Type::SHA512),
  7. src/lib.rs:32 _ => None,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement