Skip to content

Commit ad43310

Browse files
committed
cargo fmt
1 parent ac6370b commit ad43310

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

src/explicit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//! <http://www.unicode.org/reports/tr9/#Explicit_Levels_and_Directions>
1313
1414
#[cfg(feature = "smallvec")]
15-
use smallvec::{SmallVec, smallvec};
15+
use smallvec::{smallvec, SmallVec};
1616

1717
use super::char_data::{
1818
is_rtl,
@@ -37,7 +37,7 @@ pub fn compute<'a, T: TextSource<'a> + ?Sized>(
3737

3838
// <http://www.unicode.org/reports/tr9/#X1>
3939
#[cfg(feature = "smallvec")]
40-
let mut stack: SmallVec::<[Status; 8]> = smallvec![Status {
40+
let mut stack: SmallVec<[Status; 8]> = smallvec![Status {
4141
level: para_level,
4242
status: OverrideStatus::Neutral,
4343
}];

src/implicit.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ pub fn resolve_weak<'a, T: TextSource<'a> + ?Sized>(
252252
}
253253

254254
#[cfg(feature = "smallvec")]
255-
type BracketPairVec = SmallVec::<[BracketPair; 8]>;
255+
type BracketPairVec = SmallVec<[BracketPair; 8]>;
256256
#[cfg(not(feature = "smallvec"))]
257-
type BracketPairVec = Vec::<BracketPair>;
257+
type BracketPairVec = Vec<BracketPair>;
258258

259259
/// 3.3.5 Resolving Neutral Types
260260
///
@@ -280,7 +280,13 @@ pub fn resolve_neutral<'a, D: BidiDataSource, T: TextSource<'a> + ?Sized>(
280280
// > Identify the bracket pairs in the current isolating run sequence according to BD16.
281281
// We use processing_classes, not original_classes, due to BD14/BD15
282282
let mut bracket_pairs = BracketPairVec::new();
283-
identify_bracket_pairs(text, data_source, sequence, processing_classes, &mut bracket_pairs);
283+
identify_bracket_pairs(
284+
text,
285+
data_source,
286+
sequence,
287+
processing_classes,
288+
&mut bracket_pairs,
289+
);
284290

285291
// > For each bracket-pair element in the list of pairs of text positions
286292
//

src/prepare.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use alloc::vec::Vec;
1515
use core::cmp::max;
1616
use core::ops::Range;
1717
#[cfg(feature = "smallvec")]
18-
use smallvec::{SmallVec, smallvec};
18+
use smallvec::{smallvec, SmallVec};
1919

2020
use super::level::Level;
2121
use super::BidiClass::{self, *};
@@ -55,7 +55,7 @@ pub fn isolating_run_sequences(
5555
// When we encounter an isolate initiator, we push the current sequence onto the
5656
// stack so we can resume it after the matching PDI.
5757
#[cfg(feature = "smallvec")]
58-
let mut stack: SmallVec::<[Vec<Range<usize>>; 8]> = smallvec![vec![]];
58+
let mut stack: SmallVec<[Vec<Range<usize>>; 8]> = smallvec![vec![]];
5959
#[cfg(not(feature = "smallvec"))]
6060
let mut stack = vec![vec![]];
6161

0 commit comments

Comments
 (0)