Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linting errors #726

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/configuration/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ pub struct Configuration {
/// peers from the torrent peer list.
pub inactive_peer_cleanup_interval: u64,
/// If enabled, the tracker will remove torrents that have no peers.
/// THe clean up torrent job runs every `inactive_peer_cleanup_interval`
/// The clean up torrent job runs every `inactive_peer_cleanup_interval`
/// seconds and it removes inactive peers. Eventually, the peer list of a
/// torrent could be empty and the torrent will be removed if this option is
/// enabled.
Expand Down
2 changes: 1 addition & 1 deletion packages/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub enum DatabaseDriver {
// TODO: Move to the database crate once that gets its own crate.
/// The Sqlite3 database driver.
Sqlite3,
/// The MySQL database driver.
/// The `MySQL` database driver.
MySQL,
}

Expand Down
6 changes: 3 additions & 3 deletions packages/test-helpers/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub fn ephemeral() -> Configuration {
let temp_directory = env::temp_dir();
let random_db_id = random::string(16);
let temp_file = temp_directory.join(format!("data_{random_db_id}.db"));
config.db_path = temp_file.to_str().unwrap().to_owned();
temp_file.to_str().unwrap().clone_into(&mut config.db_path);

config
}
Expand Down Expand Up @@ -138,8 +138,8 @@ pub fn ephemeral_ipv6() -> Configuration {

let ipv6 = format!("[::]:{}", 0);

cfg.http_api.bind_address = ipv6.clone();
cfg.http_trackers[0].bind_address = ipv6.clone();
cfg.http_api.bind_address.clone_from(&ipv6);
cfg.http_trackers[0].bind_address.clone_from(&ipv6);
cfg.udp_trackers[0].bind_address = ipv6;

cfg
Expand Down
2 changes: 1 addition & 1 deletion src/servers/udp/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub enum Error {
source: LocatedError<'static, dyn std::error::Error + Send + Sync>,
},

/// Error returned from a third-party library (aquatic_udp_protocol).
/// Error returned from a third-party library (`aquatic_udp_protocol`).
#[error("internal server error: {message}, {location}")]
InternalServer {
location: &'static Location<'static>,
Expand Down
Loading