Skip to content

Commit f348e73

Browse files
daniel.eadesdanieleades
authored andcommitted
fixup
1 parent 880dc6e commit f348e73

File tree

10 files changed

+58
-58
lines changed

10 files changed

+58
-58
lines changed

Cargo.lock

Lines changed: 48 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arithmetic-coding-core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ mod bitstore;
66
pub use bitstore::BitStore;
77

88
mod model;
9-
pub use model::{fixed_length, max_length, one_shot, Model};
9+
pub use model::{Model, fixed_length, max_length, one_shot};

arithmetic-coding-core/src/model/one_shot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use std::ops::Range;
44

55
pub use crate::fixed_length::Wrapper;
6-
use crate::{fixed_length, BitStore};
6+
use crate::{BitStore, fixed_length};
77

88
/// A [`Model`] is used to calculate the probability of a given symbol occurring
99
/// in a sequence.

benches/sherlock.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{fs::File, io::Read, ops::Range};
22

33
use arithmetic_coding::Model;
4-
use fenwick_model::{simple::FenwickModel, ValueError};
4+
use fenwick_model::{ValueError, simple::FenwickModel};
55

66
mod common;
77

@@ -58,7 +58,7 @@ fn round_trip(input: &[u8]) {
5858
common::round_trip(model, input);
5959
}
6060

61-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
61+
use criterion::{Criterion, black_box, criterion_group, criterion_main};
6262

6363
#[allow(clippy::missing_panics_doc)]
6464
pub fn criterion_benchmark(c: &mut Criterion) {

examples/fenwick_adaptive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use arithmetic_coding::Model;
44

55
mod common;
66

7-
use fenwick_model::{simple::FenwickModel, ValueError};
7+
use fenwick_model::{ValueError, simple::FenwickModel};
88

99
const ALPHABET: &str =
1010
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .,\n-':()[]#*;\"!?*&é/àâè%@$";

examples/fenwick_context_switching.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use arithmetic_coding::Model;
44

55
mod common;
66

7-
use fenwick_model::{context_switching::FenwickModel, ValueError};
7+
use fenwick_model::{ValueError, context_switching::FenwickModel};
88

99
const ALPHABET: &str =
1010
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .,\n-':()[]#*;\"!?*&é/àâè%@$";

src/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use std::{io, ops::Range};
55
use bitstream_io::BitRead;
66

77
use crate::{
8-
common::{self, assert_precision_sufficient},
98
BitStore, Model,
9+
common::{self, assert_precision_sufficient},
1010
};
1111

1212
// this algorithm is derived from this article - https://marknelson.us/posts/2014/10/19/data-compression-with-arithmetic-coding.html

src/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use std::{io, ops::Range};
55
use bitstream_io::BitWrite;
66

77
use crate::{
8-
common::{self, assert_precision_sufficient},
98
BitStore, Error, Model,
9+
common::{self, assert_precision_sufficient},
1010
};
1111

1212
// this algorithm is derived from this article - https://marknelson.us/posts/2014/10/19/data-compression-with-arithmetic-coding.html

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
missing_copy_implementations
77
)]
88

9-
pub use arithmetic_coding_core::{fixed_length, max_length, one_shot, BitStore, Model};
9+
pub use arithmetic_coding_core::{BitStore, Model, fixed_length, max_length, one_shot};
1010

1111
mod common;
1212
pub mod decoder;

tests/precision_checking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use std::{convert::Infallible, io::Cursor, ops::Range};
66

7-
use arithmetic_coding::{decoder, encoder, Decoder, Encoder};
7+
use arithmetic_coding::{Decoder, Encoder, decoder, encoder};
88
use arithmetic_coding_core::one_shot;
99
use bitstream_io::{BigEndian, BitReader, BitWriter};
1010

0 commit comments

Comments
 (0)