Skip to content

Commit

Permalink
Move imports to 'tests' mod
Browse files Browse the repository at this point in the history
  • Loading branch information
mthmulders committed Oct 26, 2023
1 parent a5457b4 commit 8991898
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dsmr/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ use super::settings;
use super::settings::ParityBitSetting;

use std::borrow::Cow;
use std::fs;
use std::io::BufRead;
use std::io::BufReader;
use std::path::PathBuf;
use std::str;
use std::time::Duration;

Expand Down Expand Up @@ -151,6 +149,9 @@ fn to_databits(input: &u8) -> serialport::DataBits {

#[cfg(test)]
mod tests {
use std::fs;
use std::path::PathBuf;

#[allow(unused_imports)]
use super::*;

Expand Down

0 comments on commit 8991898

Please sign in to comment.