Skip to content

Commit 1edb2a4

Browse files
committed
misc: format code
1 parent 7a23a08 commit 1edb2a4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

python/src/prefix_dfs.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use std::{borrow::Cow, convert::Infallible};
22

33
use derive_more::{From, Into};
44
use general_sam::{BTreeTransTable, TravelEvent, Trie, TrieNodeAlike};
5-
use itertools::{multiunzip, Itertools};
6-
use pyo3::{pyclass, pyfunction, pymethods, Py, PyAny, PyErr, PyResult, Python};
5+
use itertools::{Itertools, multiunzip};
6+
use pyo3::{Py, PyAny, PyErr, PyResult, Python, pyclass, pyfunction, pymethods};
77

88
use crate::TokenId;
99

@@ -194,9 +194,11 @@ pub fn dfs_token_seq_trie_py<'py>(
194194
py: Python<'py>,
195195
inputs: Vec<(Vec<TokenId>, Option<Py<PyAny>>)>,
196196
) -> (Vec<TokenSeqTrieNode>, usize) {
197-
debug_assert!(inputs
198-
.iter()
199-
.all(|(_, o)| o.as_ref().is_none_or(|v| !v.is_none(py))));
197+
debug_assert!(
198+
inputs
199+
.iter()
200+
.all(|(_, o)| o.as_ref().is_none_or(|v| !v.is_none(py)))
201+
);
200202

201203
py.detach(|| {
202204
let inputs = inputs

0 commit comments

Comments
 (0)