Skip to content

Commit e0d56a4

Browse files
committed
fix: [#601] linting errors
1 parent 1d8d405 commit e0d56a4

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

src/console/commands/tracker_statistics_importer/app.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
//! Statistics are also imported:
1717
//!
1818
//! - Periodically by the importer job. The importer job is executed every hour
19-
//! by default. See [`TrackerStatisticsImporter`](crate::config::TrackerStatisticsImporter)
20-
//! for more details.
19+
//! by default. See [`TrackerStatisticsImporter`](crate::config::TrackerStatisticsImporter)
20+
//! for more details.
2121
//! - When a new torrent is added.
2222
//! - When the API returns data about a torrent statistics are collected from
23-
//! the tracker in real time.
23+
//! the tracker in real time.
2424
use std::env;
2525
use std::sync::Arc;
2626

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888
//! ```
8989
//!
9090
//! > **NOTICE**: those are the commands for `Ubuntu`. If you are using a
91-
//! different OS, you will need to install the equivalent packages. Please
92-
//! refer to the documentation of your OS.
91+
//! > different OS, you will need to install the equivalent packages. Please
92+
//! > refer to the documentation of your OS.
9393
//!
9494
//! With the default configuration you will need to create the `storage` directory:
9595
//!
@@ -154,7 +154,7 @@
154154
//! > **WARNING**: The `.env` file is also used by docker-compose.
155155
//!
156156
//! > **NOTICE**: Refer to the [sqlx-cli](https://github.com/launchbadge/sqlx/tree/main/sqlx-cli)
157-
//! documentation for other commands to create new migrations or run them.
157+
//! > documentation for other commands to create new migrations or run them.
158158
//!
159159
//! > **NOTICE**: You can run the index with [tmux](https://github.com/tmux/tmux/wiki) with `tmux new -s torrust-index`.
160160
//!

src/upgrades/from_v1_0_0_to_v2_0_0/upgrader.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
//!
2424
//! - The database schema was changed.
2525
//! - The torrents are now stored entirely in the database. The torrent files
26-
//! are not stored in the filesystem anymore. This command reads the torrent
27-
//! files from the filesystem and store them in the database.
26+
//! are not stored in the filesystem anymore. This command reads the torrent
27+
//! files from the filesystem and store them in the database.
2828
//!
2929
//! We recommend to download your production database and the torrent files dir.
3030
//! And run the command in a local environment with the version `v2.0.0.`. Then,
@@ -36,13 +36,13 @@
3636
//! NOTES for `torrust_users` table transfer:
3737
//!
3838
//! - In v2, the table `torrust_user` contains a field `date_registered` non
39-
//! existing in v1. We changed that column to allow `NULL`. We also added the
40-
//! new column `date_imported` with the datetime when the upgrader was executed.
39+
//! existing in v1. We changed that column to allow `NULL`. We also added the
40+
//! new column `date_imported` with the datetime when the upgrader was executed.
4141
//!
4242
//! NOTES for `torrust_user_profiles` table transfer:
4343
//!
4444
//! - In v2, the table `torrust_user_profiles` contains two new fields: `bio`
45-
//! and `avatar`. Empty string is used as default value.
45+
//! and `avatar`. Empty string is used as default value.
4646
//!
4747
//!
4848
//! If you want more information about this command you can read the [issue 56](https://github.com/torrust/torrust-index/issues/56).

src/utils/parse_torrent.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ struct ParsedInfoDictFromMetainfoFile {
9494
/// This function will return an error if:
9595
///
9696
/// - The torrent file is not a valid bencoded torrent file containing an `info`
97-
/// dictionary key.
97+
/// dictionary key.
9898
/// - The original torrent info-hash cannot be bencoded from the parsed `info`
99-
/// dictionary is not a valid bencoded dictionary.
99+
/// dictionary is not a valid bencoded dictionary.
100100
pub fn calculate_info_hash(bytes: &[u8]) -> Result<InfoHash, DecodeTorrentFileError> {
101101
// Extract the info dictionary
102102
let metainfo: ParsedInfoDictFromMetainfoFile =

tests/e2e/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//! set the environment variable `TORRUST_INDEX_E2E_SHARED` to `true`.
88
//!
99
//! > **NOTICE**: The server must be running before running the tests. The
10-
//! server url is hardcoded to `http://localhost:3001` for now. We are planning
11-
//! to make it configurable in the future via a environment variable.
10+
//! > server url is hardcoded to `http://localhost:3001` for now. We are planning
11+
//! > to make it configurable in the future via a environment variable.
1212
//!
1313
//! ```text
1414
//! TORRUST_INDEX_E2E_SHARED=true cargo test
@@ -22,8 +22,8 @@
2222
//! ```
2323
//!
2424
//! > **NOTICE**: Some tests require the real tracker to be running, so they
25-
//! can only be run in shared mode until we implement a mock for the
26-
//! `torrust_index::tracker::TrackerService`.
25+
//! > can only be run in shared mode until we implement a mock for the
26+
//! > `torrust_index::tracker::TrackerService`.
2727
//!
2828
//! You may have errors like `Too many open files (os error 24)`. If so, you
2929
//! need to increase the limit of open files for the current user. You can do

0 commit comments

Comments
 (0)