This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate crypto; | |
use crypto::bcrypt::bcrypt; | |
static CRYPT_B64: &'static str = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
fn crypt_decode(enc: &str, decbuf: &mut [u8]) -> Option<()> { | |
let mut cbuild = 0u8; | |
let mut cpos = 0; | |
let mut dec_idx = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mutability exercise. | |
#[cfg(not(second))] | |
fn do_frob() { | |
let mut aa = MySource::new(); | |
{ | |
let mut aaw = aa.get_sink(); | |
let ff = first::Outer::new(); | |
ff.frob(&mut *aaw); | |
aaw.flush(); |