ch21: libgit2-safe; replace deprecated const ONCE_INIT

pull/9/head
Horki 3 years ago
parent 74adadb66b
commit db570792ac

@ -75,7 +75,7 @@ use std;
use libc;
fn ensure_initialized() {
static ONCE: std::sync::Once = std::sync::ONCE_INIT;
static ONCE: std::sync::Once = std::sync::Once::new();
ONCE.call_once(|| {
unsafe {
check(raw::git_libgit2_init())

Loading…
Cancel
Save