Mercurial > public > mercurial-scm > hg-stable
diff rust/hgcli/src/main.rs @ 43836:ce088b38f92b
rust: run rustfmt
# skip-blame automated reformatting
Differential Revision: https://phab.mercurial-scm.org/D7578
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 07 Dec 2019 13:06:25 -0800 |
parents | 5c9c71cde1c9 |
children | 26ce8e751503 |
line wrap: on
line diff
--- a/rust/hgcli/src/main.rs Fri Dec 06 16:09:03 2019 -0500 +++ b/rust/hgcli/src/main.rs Sat Dec 07 13:06:25 2019 -0800 @@ -5,18 +5,18 @@ // This software may be used and distributed according to the terms of the // GNU General Public License version 2 or any later version. +extern crate cpython; extern crate libc; -extern crate cpython; extern crate python27_sys; use cpython::{NoArgs, ObjectProtocol, PyModule, PyResult, Python}; use libc::{c_char, c_int}; use std::env; -use std::path::PathBuf; use std::ffi::{CString, OsStr}; #[cfg(target_family = "unix")] use std::os::unix::ffi::{OsStrExt, OsStringExt}; +use std::path::PathBuf; #[derive(Debug)] struct Environment {