Use Arc
This commit is contained in:
parent
21cd68bb82
commit
a5952bf7c0
@ -428,6 +428,8 @@ mod tests {
|
|||||||
use function1;
|
use function1;
|
||||||
use function2;
|
use function2;
|
||||||
|
|
||||||
|
use std::sync::Arc;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn simple_function() {
|
fn simple_function() {
|
||||||
let mut lua = Lua::new();
|
let mut lua = Lua::new();
|
||||||
@ -562,7 +564,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
let foo = ::std::sync::Arc::new(Foo { });
|
let foo = Arc::new(Foo { });
|
||||||
|
|
||||||
{
|
{
|
||||||
let mut lua = Lua::new();
|
let mut lua = Lua::new();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user