Skip to content

Commit

Permalink
Fix rust lint
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1ck committed Feb 11, 2024
1 parent ea69a07 commit a77f304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/createtorrent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl CreationRequests {

let mut builder = TorrentBuilder::new(info.path, info.piece_length)
.set_name(info.name)
.set_announce(info.announce_list.get(0).cloned())
.set_announce(info.announce_list.first().cloned())
.add_extra_field(
"created by".into(),
BencodeElem::String(format!("TrguiNG {}", info.version)),
Expand Down

0 comments on commit a77f304

Please sign in to comment.