minor formatting cleanups
This commit is contained in:
parent
8aa4fa7c2d
commit
53d2658ea2
|
@ -276,9 +276,10 @@ impl QuestDataPacket {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
|
||||||
use claim::*;
|
use claim::*;
|
||||||
|
|
||||||
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
pub fn create_quest_header_packet_from_bytes() -> Result<(), PacketError> {
|
pub fn create_quest_header_packet_from_bytes() -> Result<(), PacketError> {
|
||||||
// dat
|
// dat
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
use std::fmt::{Debug, Formatter};
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::{BufReader, Cursor, Read, Write};
|
use std::io::{BufReader, Cursor, Read, Write};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
@ -8,7 +9,6 @@ use thiserror::Error;
|
||||||
use crate::bytes::*;
|
use crate::bytes::*;
|
||||||
use crate::compression::{prs_compress, prs_decompress, PrsCompressionError};
|
use crate::compression::{prs_compress, prs_decompress, PrsCompressionError};
|
||||||
use crate::text::Language;
|
use crate::text::Language;
|
||||||
use std::fmt::{Debug, Formatter};
|
|
||||||
|
|
||||||
pub const QUEST_BIN_NAME_LENGTH: usize = 32;
|
pub const QUEST_BIN_NAME_LENGTH: usize = 32;
|
||||||
pub const QUEST_BIN_SHORT_DESCRIPTION_LENGTH: usize = 128;
|
pub const QUEST_BIN_SHORT_DESCRIPTION_LENGTH: usize = 128;
|
||||||
|
@ -314,11 +314,11 @@ impl QuestBin {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub mod tests {
|
pub mod tests {
|
||||||
use claim::*;
|
use claim::*;
|
||||||
|
use rand::prelude::StdRng;
|
||||||
|
use rand::{Fill, SeedableRng};
|
||||||
use tempfile::TempDir;
|
use tempfile::TempDir;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use rand::prelude::StdRng;
|
|
||||||
use rand::{Fill, SeedableRng};
|
|
||||||
|
|
||||||
pub fn validate_quest_58_bin(bin: &QuestBin) {
|
pub fn validate_quest_58_bin(bin: &QuestBin) {
|
||||||
assert_eq!(2000, bin.object_code.len());
|
assert_eq!(2000, bin.object_code.len());
|
||||||
|
|
Loading…
Reference in a new issue