Merge branch 'fix_tests' into 'master'

Fix doctests

See merge request Librem5/squeekboard!157
This commit is contained in:
David Boddie
2019-09-11 11:55:26 +00:00
4 changed files with 10 additions and 4 deletions

View File

@ -8,4 +8,4 @@ bitflags = "1.1"
[lib] [lib]
name = "rs" name = "rs"
path = "src/lib.rs" path = "src/lib.rs"
crate-type = ["staticlib"] crate-type = ["staticlib", "rlib"]

View File

@ -5,6 +5,10 @@
/* Adapted from https://github.com/notriddle/rust-float-ord revision e995165f /* Adapted from https://github.com/notriddle/rust-float-ord revision e995165f
* maintained by Michael Howell <michael@notriddle.com> * maintained by Michael Howell <michael@notriddle.com>
* licensed under MIT / Apache-2.0 licenses * 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; extern crate core;
@ -67,6 +71,7 @@ float_ord_impl!(f64, u64, 64);
/// # Example /// # Example
/// ///
/// ``` /// ```
/// use rs::float_ord;
/// let mut v = [-5.0, 4.0, 1.0, -3.0, 2.0]; /// let mut v = [-5.0, 4.0, 1.0, -3.0, 2.0];
/// ///
/// float_ord::sort(&mut v); /// float_ord::sort(&mut v);

View File

@ -230,7 +230,8 @@ bitflags!{
/// Map to `text_input_unstable_v3.content_purpose` values /// 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)] #[derive(Debug, Clone)]
pub enum ContentPurpose { pub enum ContentPurpose {

View File

@ -1,8 +1,8 @@
#[macro_use] #[macro_use]
extern crate bitflags; extern crate bitflags;
mod float_ord; pub mod float_ord;
mod imservice; pub mod imservice;
mod keyboard; mod keyboard;
mod layout; mod layout;
mod symbol; mod symbol;