minor formatting cleanups

This commit is contained in:
Gered 2021-05-20 17:09:22 -04:00
parent 8aa4fa7c2d
commit 53d2658ea2
2 changed files with 5 additions and 4 deletions

View file

@ -276,9 +276,10 @@ impl QuestDataPacket {
#[cfg(test)]
mod tests {
use super::*;
use claim::*;
use super::*;
#[test]
pub fn create_quest_header_packet_from_bytes() -> Result<(), PacketError> {
// dat

View file

@ -1,3 +1,4 @@
use std::fmt::{Debug, Formatter};
use std::fs::File;
use std::io::{BufReader, Cursor, Read, Write};
use std::path::Path;
@ -8,7 +9,6 @@ use thiserror::Error;
use crate::bytes::*;
use crate::compression::{prs_compress, prs_decompress, PrsCompressionError};
use crate::text::Language;
use std::fmt::{Debug, Formatter};
pub const QUEST_BIN_NAME_LENGTH: usize = 32;
pub const QUEST_BIN_SHORT_DESCRIPTION_LENGTH: usize = 128;
@ -314,11 +314,11 @@ impl QuestBin {
#[cfg(test)]
pub mod tests {
use claim::*;
use rand::prelude::StdRng;
use rand::{Fill, SeedableRng};
use tempfile::TempDir;
use super::*;
use rand::prelude::StdRng;
use rand::{Fill, SeedableRng};
pub fn validate_quest_58_bin(bin: &QuestBin) {
assert_eq!(2000, bin.object_code.len());