Minor cleanup

This commit is contained in:
Fabian 2024-08-12 00:41:33 +02:00
parent ee092097c7
commit 2647cee911
2 changed files with 8 additions and 8 deletions

View File

@ -60,7 +60,7 @@ fn main() -> Result<()> {
let resp = client.get(url).send()?;
let status = resp.status();
let body = resp.text()?;
let _body = resp.text()?;
println!("Response: {status}");
Ok(())

View File

@ -1,10 +1,10 @@
use serde::{de, Deserialize, Deserializer, Serialize, Serializer};
use std::path;
use serde_bytes::ByteBuf;
use sha1::{Digest, Sha1};
use serde::ser::SerializeSeq;
use crate::bencode::de::from_bytes;
use crate::bencode::ser::to_bytes;
use serde::ser::SerializeSeq;
use serde::{de, Deserialize, Deserializer, Serialize, Serializer};
use serde_bytes::ByteBuf;
use sha1::{Digest, Sha1};
use std::path;
#[derive(Serialize, Deserialize, Debug)]
pub struct FileInfo {
@ -96,9 +96,9 @@ impl Torrent {
#[cfg(test)]
mod tests {
use std::{env, fs};
use std::path::Path;
use crate::torrent::Torrent;
use std::path::Path;
use std::{env, fs};
#[test]
fn check_correct_info_hash() {