Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Nov 8, 2024
1 parent e3fff18 commit 361766c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/filestore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use spacepackets::ByteConversionError;
pub use std_mod::*;

#[derive(Debug, thiserror::Error)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[cfg_attr(all(feature = "defmt", not(feature = "std")), derive(defmt::Format))]
#[non_exhaustive]
pub enum FilestoreError {
#[error("file does not exist")]
Expand Down Expand Up @@ -121,7 +120,8 @@ pub mod std_mod {
use super::*;
use std::{
fs::{self, File, OpenOptions},
io::{BufReader, Read, Seek, SeekFrom, Write}, path::Path,
io::{BufReader, Read, Seek, SeekFrom, Write},
path::Path,
};

#[derive(Default)]
Expand Down Expand Up @@ -642,7 +642,7 @@ mod tests {
}
assert_eq!(
error.to_string(),
format!("filestore error: {}", byte_conv_error)
format!("byte conversion: {}", byte_conv_error)
);
} else {
panic!("unexpected error");
Expand Down Expand Up @@ -765,7 +765,7 @@ mod tests {
if let FilestoreError::ChecksumTypeNotImplemented(cksum_type) = error {
assert_eq!(
error.to_string(),
format!("checksum {:?} not implemented", cksum_type)
format!("checksum type not implemented: {:?}", cksum_type)
);
} else {
panic!("unexpected error");
Expand Down

0 comments on commit 361766c

Please sign in to comment.