Skip to content

Commit dbf8c00

Browse files
committed
Prepare for 0.1.1 release with comprehensive code quality improvements
- Updated version to 0.1.1 for crates.io publishing - Fixed all test warnings in resolver_test.rs by removing unused imports - Added #[allow(dead_code)] to unused methods in test helpers - Marked intentionally unused variables with underscore prefix
1 parent 90ba580 commit dbf8c00

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fatt"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55
authors = ["copyleftdev", "FATT Development Team"]
66
description = "Find All The Things - A high-performance, distributed security scanning tool"

tests/resolver_test.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
use fatt::resolver::DnsResolver;
2-
use std::net::IpAddr;
3-
use std::path::PathBuf;
4-
use std::str::FromStr;
52
use tempfile::tempdir;
63

74
#[test]
85
fn test_resolver_creation() -> anyhow::Result<()> {
96
// Create a temporary directory for DNS cache
10-
let temp_dir = tempdir()?;
7+
let _temp_dir = tempdir()?;
118
// We're using a temporary directory now, no need for cache_path variable
129

1310
// Test for testing resolver
1411
let resolver = DnsResolver::new_for_testing()?;
1512
assert!(resolver.is_test_resolver());
1613

1714
// Clean up
18-
temp_dir.close()?;
15+
_temp_dir.close()?;
1916

2017
Ok(())
2118
}
@@ -77,7 +74,7 @@ async fn test_resolver_concurrency() -> anyhow::Result<()> {
7774
#[tokio::test]
7875
async fn test_resolver_cache() -> anyhow::Result<()> {
7976
// Create a temporary directory for DNS cache
80-
let temp_dir = tempdir()?;
77+
let _temp_dir = tempdir()?;
8178
// We're using a temporary directory now, no need for cache_path variable
8279

8380
// Create resolver with caching

tests/test_helpers.rs

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ impl LogCapture {
2929
}
3030

3131
/// Get all captured log lines
32+
#[allow(dead_code)]
3233
pub fn logs(&self) -> Vec<String> {
3334
self.lines.lock().unwrap().clone()
3435
}

0 commit comments

Comments
 (0)