Skip to content

Commit 774b61f

Browse files
author
daniel.eades
committed
fixup
1 parent fee50a2 commit 774b61f

File tree

9 files changed

+28
-37
lines changed

9 files changed

+28
-37
lines changed

Cargo.lock

Lines changed: 19 additions & 28 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
@@ -4,7 +4,7 @@ use std::{io, ops::Range};
44

55
use bitstream_io::BitRead;
66

7-
use crate::{common, BitStore, Model};
7+
use crate::{BitStore, Model, common};
88

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

src/encoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::{io, ops::Range};
44

55
use bitstream_io::BitWrite;
66

7-
use crate::{common, BitStore, Error, Model};
7+
use crate::{BitStore, Error, Model, common};
88

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

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
#![deny(missing_docs, missing_debug_implementations)]
44

5-
pub use arithmetic_coding_core::{fixed_length, max_length, one_shot, BitStore, Model};
5+
pub use arithmetic_coding_core::{BitStore, Model, fixed_length, max_length, one_shot};
66

77
mod common;
88
pub mod decoder;

0 commit comments

Comments
 (0)