Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No modes #11

Merged
merged 2 commits into from May 10, 2013
Merged

No modes #11

Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Remove unused mut.

  • Loading branch information
metajack committed May 10, 2013
commit e326ad8f4c750143263903b88cabbcea17829569
@@ -184,11 +184,11 @@ pub extern fn timer_callback(index: int) {

pub fn timer_func(msecs: u32, callback: @fn()) {
unsafe {
let mut callbacks;
let callbacks;
match local_data_get(timer_callback_tls_key) {
None => {
callbacks = @mut ~[];
local_data_set(timer_callback_tls_key, cast::transmute(copy callbacks));
local_data_set(timer_callback_tls_key, cast::transmute(callbacks));
}
Some(existing_callbacks) => {
callbacks = cast::transmute(existing_callbacks);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.