Skip to content

Commit

Permalink
Replace get_type_id with type_id
Browse files Browse the repository at this point in the history
In rust 1.33.0, get_type_id was stabilized and renamed to type_id

Fixes CodeSandwich#36
  • Loading branch information
asomers committed Jan 28, 2019
1 parent ad594da commit d1244bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(fn_traits, get_type_id, unboxed_closures, use_extern_macros)]
#![feature(fn_traits, unboxed_closures, use_extern_macros)]

//! Mocking framework for Rust (currently only nightly)
//!
Expand Down
2 changes: 1 addition & 1 deletion src/mocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ impl<T, O, F: FnOnce<T, Output=O>> Mockable<T, O> for F {
}

unsafe fn get_mock_id(&self) -> TypeId {
(||()).get_type_id()
(||()).type_id()
}
}

0 comments on commit d1244bc

Please sign in to comment.