Merge branch 'fix_tests' into reparse

This commit is contained in:
Dorota Czaplejewicz
2019-09-11 12:03:24 +00:00
5 changed files with 24 additions and 17 deletions

View File

@ -5,6 +5,10 @@
/* Adapted from https://github.com/notriddle/rust-float-ord revision e995165f
* maintained by Michael Howell <michael@notriddle.com>
* licensed under MIT / Apache-2.0 licenses
*
* This version drops any dependency on rand.
* Caution: Don't pull the version from crates.io
* before making sure rand is optional.
*/
extern crate core;
@ -67,6 +71,7 @@ float_ord_impl!(f64, u64, 64);
/// # Example
///
/// ```
/// use rs::float_ord;
/// let mut v = [-5.0, 4.0, 1.0, -3.0, 2.0];
///
/// float_ord::sort(&mut v);

View File

@ -226,7 +226,8 @@ bitflags!{
/// Map to `text_input_unstable_v3.content_purpose` values
///
/// ```
/// assert_eq!(ContentPurpose::Alpha as u32, 0);
/// use rs::imservice::ContentPurpose;
/// assert_eq!(ContentPurpose::Alpha as u32, 1);
/// ```
#[derive(Debug, Clone)]
pub enum ContentPurpose {

View File

@ -5,8 +5,8 @@ extern crate maplit;
extern crate serde;
mod data;
mod float_ord;
mod imservice;
pub mod float_ord;
pub mod imservice;
mod keyboard;
mod layout;
mod resources;