Add wasm32_web_time feature (#73)
This commit is contained in:
parent
717757e156
commit
177ce9e700
9 changed files with 30 additions and 14 deletions
|
|
@ -4,10 +4,10 @@
|
|||
//! * space `O(MN)`
|
||||
use std::collections::BTreeMap;
|
||||
use std::ops::{Index, Range};
|
||||
use std::time::Instant;
|
||||
|
||||
use crate::algorithms::utils::{common_prefix_len, common_suffix_len, is_empty_range};
|
||||
use crate::algorithms::DiffHook;
|
||||
use crate::Instant;
|
||||
|
||||
/// LCS diff algorithm.
|
||||
///
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ pub(crate) mod utils;
|
|||
|
||||
use std::hash::Hash;
|
||||
use std::ops::{Index, Range};
|
||||
use std::time::Instant;
|
||||
|
||||
use crate::Instant;
|
||||
pub use capture::Capture;
|
||||
pub use compact::Compact;
|
||||
pub use hook::{DiffHook, NoFinishHook};
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@
|
|||
//! For potential improvements here see [similar#15](https://github.com/mitsuhiko/similar/issues/15).
|
||||
|
||||
use std::ops::{Index, IndexMut, Range};
|
||||
use std::time::Instant;
|
||||
|
||||
use crate::algorithms::utils::{common_prefix_len, common_suffix_len, is_empty_range};
|
||||
use crate::algorithms::DiffHook;
|
||||
use crate::Instant;
|
||||
|
||||
/// Myers' diff algorithm.
|
||||
///
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@
|
|||
//! by Pierre-Étienne Meunier.
|
||||
use std::hash::Hash;
|
||||
use std::ops::{Index, Range};
|
||||
use std::time::Instant;
|
||||
|
||||
use crate::algorithms::{myers, DiffHook, NoFinishHook, Replace};
|
||||
use crate::Instant;
|
||||
|
||||
use super::utils::{unique, UniqueItem};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue