Skip to content

Commit

Permalink
Merge pull request #2 from ogham/master
Browse files Browse the repository at this point in the history
Latest Rust requires std::cmp imports
  • Loading branch information
lifthrasiir committed Jan 4, 2015
2 parents 690bc7e + 8843b96 commit 04153c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ This version of natural ordering is inspired by

#![feature(macro_rules)]

use std::cmp::Ordering;
use std::cmp::Ordering::{Less, Equal, Greater};

/// Compares two iterators of "characters" possibly containing "digits".
/// The natural ordering can be customized with the following parameters:
///
Expand Down Expand Up @@ -147,6 +150,8 @@ pub fn compare_ignore_case(left: &str, right: &str) -> Ordering {
#[cfg(test)]
mod tests {
use super::compare;
use std::cmp::Ordering;
use std::cmp::Ordering::{Less, Equal, Greater};

fn check_total_order(strs: &[&str]) {
fn ordering_to_op(ord: Ordering) -> &'static str {
Expand Down

0 comments on commit 04153c5

Please sign in to comment.