Skip to content

Instantly share code, notes, and snippets.

@krakatoa
Last active December 26, 2016 14:21
Show Gist options
  • Select an option

  • Save krakatoa/09f356ca7111707a264c to your computer and use it in GitHub Desktop.

Select an option

Save krakatoa/09f356ca7111707a264c to your computer and use it in GitHub Desktop.
fn a() {
let name = b();
println!("Here the output is '()' Why? {:?}", name);
}
fn b() {
let reader = env.get_reader().unwrap();
let db = reader.bind(&db_handle);
let name = db.get::<&str>(&"Some-Key");
println!("Here the output is 'Some-Value' {:?}", name);
name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment