Skip to content

Commit

Permalink
style: use Once::new
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystucki authored and BurntSushi committed Jan 9, 2020
1 parent 98bc904 commit 8b0d2ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/src/ffi/tcl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

use std::mem;
use std::ptr;
use std::sync::{Once, ONCE_INIT};
use std::sync::Once;

use libc::{c_char, c_int, c_long, c_void};

// Used to initialize the TCL interpreter exactly once.
static ONCE: Once = ONCE_INIT;
static ONCE: Once = Once::new();

/// Text is a TCL string object backed by a Rust string.
///
Expand Down

0 comments on commit 8b0d2ac

Please sign in to comment.