Merge pull request #9 from Horki/ch_21_sync_once

ch21: libgit2-safe; replace deprecated const ONCE_INIT
pull/13/head
Jim Blandy 3 years ago committed by GitHub
commit 488030873c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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