Skip to content

Commit

Permalink
Merge pull request #411 from mgeisler/interactive-example-optimal-fit
Browse files Browse the repository at this point in the history
Default to `OptimalFit` in interactive example
  • Loading branch information
mgeisler authored Jul 10, 2021
2 parents 172567e + 6d9720b commit 3f3ae37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ mod unix_only {
}

pub fn main() -> Result<(), io::Error> {
let mut wrap_algorithms: Vec<Box<dyn wrap_algorithms::WrapAlgorithm>> =
vec![Box::new(wrap_algorithms::FirstFit::new())];
let mut wrap_algorithms: Vec<Box<dyn wrap_algorithms::WrapAlgorithm>> = Vec::new();
#[cfg(feature = "smawk")]
wrap_algorithms.push(Box::new(wrap_algorithms::OptimalFit::new()));
wrap_algorithms.push(Box::new(wrap_algorithms::FirstFit::new()));

let mut word_splitters: Vec<Box<dyn word_splitters::WordSplitter>> = vec![
Box::new(word_splitters::HyphenSplitter),
Expand Down

0 comments on commit 3f3ae37

Please sign in to comment.