Skip to content

Instantly share code, notes, and snippets.

@wendorf
Created March 30, 2014 22:57
Show Gist options
  • Save wendorf/9881360 to your computer and use it in GitHub Desktop.
Save wendorf/9881360 to your computer and use it in GitHub Desktop.
fn stub(function: fn(&[&str])) -> &str {
let original_function = function;
function = |arg: &[&str]| {
println("I'm in my stub wrapper");
original_function(arg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment