Skip to content

Commit

Permalink
Rename "mock" module to "common" (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn authored Oct 16, 2018
1 parent a75db67 commit b1492fc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/mock.rs → src/common.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Common functionality used by the mock implementations.
use std::sync::{Mutex, Arc};

Expand Down Expand Up @@ -60,7 +61,7 @@ impl <'a, T>Iterator for Generic<'a, T> {

#[cfg(test)]
mod tests {
use mock::Generic;
use super::*;

#[test]
fn test_generic_mock() {
Expand Down
2 changes: 1 addition & 1 deletion src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
use hal::blocking::i2c;

use mock::Generic;
use common::Generic;
use error::MockError;

/// I2C Transaction modes
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extern crate embedded_hal as hal;
mod error;
pub use error::MockError;

pub mod mock;
pub mod common;
pub mod i2c;
pub mod spi;
pub mod delay;
Expand Down
2 changes: 1 addition & 1 deletion src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
use hal::blocking::spi;

use mock::Generic;
use common::Generic;
use error::MockError;

/// SPI Transaction mode
Expand Down

0 comments on commit b1492fc

Please sign in to comment.