Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
asukaminato0721 committed Nov 30, 2024
1 parent 86217fc commit a3338d2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/algo.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::ImplScheduler;
use crate::models::{Card, Rating, RecordLog, SchedulingInfo};
use crate::parameters::Parameters;
use crate::scheduler_basic::BasicScheduler;
use crate::scheduler_longterm::LongtermScheduler;
use crate::ImplScheduler;

use chrono::{DateTime, Utc};

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod algo;
pub use algo::FSRS;

mod alea;
pub use alea::{alea, Alea, AleaState, Prng};
pub use alea::{Alea, AleaState, Prng, alea};

mod scheduler;
pub use scheduler::{ImplScheduler, Scheduler};
Expand Down
2 changes: 1 addition & 1 deletion src/parameters.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use chrono::Utc;

use crate::alea;
use crate::Rating;
use crate::alea;

type Weights = [f64; 19];
const DEFAULT_WEIGHTS: Weights = [
Expand Down
4 changes: 2 additions & 2 deletions src/scheduler.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use chrono::{DateTime, Utc};

use crate::models::State::*;
use crate::Seed;
use crate::models::State::*;
use crate::{
models::{RecordLog, SchedulingInfo},
Card, Parameters, Rating, ReviewLog,
models::{RecordLog, SchedulingInfo},
};

#[derive(Debug, Clone)]
Expand Down
2 changes: 1 addition & 1 deletion src/scheduler_basic.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use chrono::{DateTime, Duration, Utc};

use crate::{scheduler::Scheduler, Card, ImplScheduler, Parameters, Rating, SchedulingInfo};
use crate::{Card, ImplScheduler, Parameters, Rating, SchedulingInfo, scheduler::Scheduler};
use crate::{Rating::*, State::*};
pub struct BasicScheduler {
pub scheduler: Scheduler,
Expand Down
2 changes: 1 addition & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[cfg(test)]
use {
crate::{
alea::{alea, AleaState},
alea::{AleaState, alea},
algo::FSRS,
models::{Card, Rating, State},
parameters::{Parameters, Seed},
Expand Down

0 comments on commit a3338d2

Please sign in to comment.