Patchwork D7813: revlog: run rustfmt nightly

login
register
mail settings
Submitter phabricator
Date Jan. 14, 2020, 4:13 p.m.
Message ID <6298e7aa89f9770f43243f0e2069f226@localhost.localdomain>
Download mbox | patch
Permalink /patch/44316/
State Not Applicable
Headers show

Comments

phabricator - Jan. 14, 2020, 4:13 p.m.
Closed by commit rHG625691953552: revlog: run rustfmt nightly (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7813?vs=19088&id=19211

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7813/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7813

AFFECTED FILES
  rust/hg-cpython/src/revlog.rs

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
Cc: gracinet, kevincox, mercurial-devel

Patch

diff --git a/rust/hg-cpython/src/revlog.rs b/rust/hg-cpython/src/revlog.rs
--- a/rust/hg-cpython/src/revlog.rs
+++ b/rust/hg-cpython/src/revlog.rs
@@ -7,14 +7,17 @@ 
 
 use crate::cindex;
 use cpython::{
-    ObjectProtocol, PyClone, PyDict, PyModule, PyObject, PyResult, PyTuple, Python, PythonObject,
-    ToPyObject,
+    ObjectProtocol, PyClone, PyDict, PyModule, PyObject, PyResult, PyTuple,
+    Python, PythonObject, ToPyObject,
 };
 use hg::Revision;
 use std::cell::RefCell;
 
 /// Return a Struct implementing the Graph trait
-pub(crate) fn pyindex_to_graph(py: Python, index: PyObject) -> PyResult<cindex::Index> {
+pub(crate) fn pyindex_to_graph(
+    py: Python,
+    index: PyObject,
+) -> PyResult<cindex::Index> {
     match index.extract::<MixedIndex>(py) {
         Ok(midx) => Ok(midx.clone_cindex(py)),
         Err(_) => cindex::Index::new(py, index),