File tree Expand file tree Collapse file tree 20 files changed +32
-32
lines changed
font-awesome-as-a-crate/src Expand file tree Collapse file tree 20 files changed +32
-32
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ To run GUI tests:
113
113
```
114
114
115
115
They use the [ browser-ui-test] ( https://github.com/GuillaumeGomez/browser-UI-test/ ) framework. You
116
- can take a look at its documentation [ here ] ( https://github.com/GuillaumeGomez/browser-UI-test/blob/master/goml-script.md ) .
116
+ can take a look at its [ documentation ] ( https://github.com/GuillaumeGomez/browser-UI-test/blob/master/goml-script.md ) .
117
117
118
118
### Pure docker-compose
119
119
Original file line number Diff line number Diff line change @@ -123,6 +123,6 @@ mod tests {
123
123
fn it_works ( ) {
124
124
assert ! ( crate :: svg( crate :: Type :: Solid , "gear" ) . is_ok( ) ) ;
125
125
assert ! ( crate :: svg( crate :: Type :: Solid , "download" ) . is_ok( ) ) ;
126
- assert ! ( crate :: svg( crate :: Type :: Solid , "giberich " ) . is_err( ) ) ;
126
+ assert ! ( crate :: svg( crate :: Type :: Solid , "gibberish " ) . is_err( ) ) ;
127
127
}
128
128
}
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ impl Metadata {
267
267
cargo_args. push ( "--no-default-features" . into ( ) ) ;
268
268
}
269
269
270
- // Unconditionnaly set `--cfg docsrs` as it has become a de-facto way to
270
+ // Unconditionally set `--cfg docsrs` as it has become a de-facto way to
271
271
// distinguish docs.rs.
272
272
//
273
273
// See https://github.com/rust-lang/docs.rs/issues/2389.
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function parseOptions(args) {
31
31
"no_headless" : false ,
32
32
"jobs" : - 1 ,
33
33
} ;
34
- const correspondances = {
34
+ const correspondences = {
35
35
"--debug" : "debug" ,
36
36
"--show-text" : "show_text" ,
37
37
"--no-headless" : "no_headless" ,
@@ -53,15 +53,15 @@ function parseOptions(args) {
53
53
}
54
54
opts [ "jobs" ] = parseInt ( args [ i ] ) ;
55
55
} else if ( args [ i - 1 ] !== "--file" ) {
56
- opts [ correspondances [ args [ i - 1 ] ] ] = args [ i ] ;
56
+ opts [ correspondences [ args [ i - 1 ] ] ] = args [ i ] ;
57
57
} else {
58
58
opts [ "files" ] . push ( args [ i ] ) ;
59
59
}
60
60
} else if ( args [ i ] === "--help" ) {
61
61
showHelp ( ) ;
62
62
process . exit ( 0 ) ;
63
- } else if ( correspondances [ args [ i ] ] ) {
64
- opts [ correspondances [ args [ i ] ] ] = true ;
63
+ } else if ( correspondences [ args [ i ] ] ) {
64
+ opts [ correspondences [ args [ i ] ] ] = true ;
65
65
} else {
66
66
console . log ( "Unknown option `" + args [ i ] + "`." ) ;
67
67
console . log ( "Use `--help` to see the list of options" ) ;
Original file line number Diff line number Diff line change @@ -542,13 +542,13 @@ enum DatabaseSubcommand {
542
542
version : Option < i64 > ,
543
543
} ,
544
544
545
- /// temporary commant to update the `crates.latest_version_id` field
545
+ /// temporary command to update the `crates.latest_version_id` field
546
546
UpdateLatestVersionId ,
547
547
548
- /// Updates Github/Gitlab stats for crates.
548
+ /// Updates GitHub/GitLab stats for crates.
549
549
UpdateRepositoryFields ,
550
550
551
- /// Backfill GitHub/Gitlab stats for crates.
551
+ /// Backfill GitHub/GitLab stats for crates.
552
552
BackfillRepositoryStats ,
553
553
554
554
/// Updates info for a crate from the registry's API
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ use strum::EnumString;
19
19
use tracing:: { debug, info, instrument, warn} ;
20
20
use uuid:: Uuid ;
21
21
22
- /// maximum amout of parallel in-progress wildcard invalidations
22
+ /// maximum amount of parallel in-progress wildcard invalidations
23
23
/// The actual limit is 15, but we want to keep some room for manually
24
24
/// triggered invalidations
25
25
const MAX_CLOUDFRONT_WILDCARD_INVALIDATIONS : i32 = 13 ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ pub struct Config {
41
41
pub ( crate ) github_accesstoken : Option < String > ,
42
42
pub ( crate ) github_updater_min_rate_limit : u32 ,
43
43
44
- // Gitlab authentication
44
+ // GitLab authentication
45
45
pub ( crate ) gitlab_accesstoken : Option < String > ,
46
46
47
47
// Access token for APIs for crates.io (careful: use
@@ -132,7 +132,7 @@ impl Config {
132
132
( "CRATESFYI_RUSTWIDE_WORKSPACE" , "DOCSRS_RUSTWIDE_WORKSPACE" ) ,
133
133
( "DOCS_RS_DOCKER" , "DOCSRS_DOCKER" ) ,
134
134
( "DOCS_RS_LOCAL_DOCKER_IMAGE" , "DOCSRS_DOCKER_IMAGE" ) ,
135
- ( "DOCS_RS_BULID_CPU_LIMIT " , "DOCSRS_BULID_CPU_LIMIT " ) ,
135
+ ( "DOCS_RS_BUILD_CPU_LIMIT " , "DOCSRS_BUILD_CPU_LIMIT " ) ,
136
136
] ;
137
137
for ( old_var, new_var) in old_vars {
138
138
if std:: env:: var ( old_var) . is_ok ( ) {
Original file line number Diff line number Diff line change @@ -1038,7 +1038,7 @@ mod test {
1038
1038
}
1039
1039
1040
1040
#[ test]
1041
- fn update_owner_detais ( ) {
1041
+ fn update_owner_details ( ) {
1042
1042
async_wrapper ( |env| async move {
1043
1043
let mut conn = env. async_db ( ) . await . async_conn ( ) . await ;
1044
1044
let crate_id = initialize_crate ( & mut conn, "krate" ) . await ?;
@@ -1300,7 +1300,7 @@ mod test {
1300
1300
}
1301
1301
1302
1302
#[ test]
1303
- fn test_long_relaase_version ( ) {
1303
+ fn test_long_release_version ( ) {
1304
1304
async_wrapper ( |env| async move {
1305
1305
let mut conn = env. async_db ( ) . await . async_conn ( ) . await ;
1306
1306
Original file line number Diff line number Diff line change @@ -1461,7 +1461,7 @@ mod tests {
1461
1461
. successful
1462
1462
) ;
1463
1463
1464
- // source archice exists
1464
+ // source archive exists
1465
1465
let source_archive = source_archive_path ( crate_, version) ;
1466
1466
assert ! (
1467
1467
env. storage( ) . exists( & source_archive) ?,
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ impl ServiceMetrics {
329
329
// When a priority is used at least once, it would be kept in the metric and the last
330
330
// value would be remembered. `pending_count_by_priority` returns only the priorities
331
331
// that are currently in the queue, which means when the tasks for a priority are
332
- // finished, we wouldn't update the metric any more , which means a wrong value is
332
+ // finished, we wouldn't update the metric anymore , which means a wrong value is
333
333
// in the metric.
334
334
//
335
335
// The solution is to reset the metric, and then set all priorities again.
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ impl RepositoryForge for GitLab {
98
98
99
99
async fn fetch_repository ( & self , name : & RepositoryName ) -> Result < Option < Repository > > {
100
100
let project_path = format ! ( "{}/{}" , name. owner, name. repo) ;
101
- // Fetch the latest information from the Gitlab API.
101
+ // Fetch the latest information from the GitLab API.
102
102
let response: ( GraphResponse < GraphProjectNode > , Option < usize > ) = self
103
103
. graphql (
104
104
GRAPHQL_SINGLE ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ use tracing::{error, warn};
22
22
const PUBLIC_ACCESS_TAG : & str = "static-cloudfront-access" ;
23
23
const PUBLIC_ACCESS_VALUE : & str = "allow" ;
24
24
25
- // error codes to check for when trying to determaine if an error is
25
+ // error codes to check for when trying to determine if an error is
26
26
// a "NOT FOUND" error.
27
27
// Definition taken from the S3 rust SDK,
28
28
// and validated by manually testing with actual S3.
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ use tracing::debug;
23
23
24
24
/// Create a fake release in the database that failed before the build.
25
25
/// This is a temporary small factory function only until we refactored the
26
- /// `FakeRelelease ` and `FakeBuild` factories to be more flexible.
26
+ /// `FakeRelease ` and `FakeBuild` factories to be more flexible.
27
27
pub ( crate ) async fn fake_release_that_failed_before_build (
28
28
conn : & mut sqlx:: PgConnection ,
29
29
name : & str ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub enum CachePolicy {
28
28
/// cache for a short time in the browser & CDN.
29
29
/// right now: one minute.
30
30
/// Can be used when the content can be a _little_ outdated,
31
- /// while protecting agains spikes in traffic.
31
+ /// while protecting against spikes in traffic.
32
32
ShortInCdnAndBrowser ,
33
33
/// cache forever in browser & CDN.
34
34
/// Valid when you have hashed / versioned filenames and every rebuild would
@@ -39,7 +39,7 @@ pub enum CachePolicy {
39
39
/// this, for example after building a crate.
40
40
/// Example usage: `/latest/` rustdoc pages and their redirects.
41
41
ForeverInCdn ,
42
- /// cache forver in the CDN, but allow stale content in the browser.
42
+ /// cache forever in the CDN, but allow stale content in the browser.
43
43
/// Example: rustdoc pages with the version in their URL.
44
44
/// A browser will show the stale content while getting the up-to-date
45
45
/// version from the origin server in the background.
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ impl MatchedRelease {
170
170
}
171
171
}
172
172
173
- /// Canonicalize the the version from the request
173
+ /// Canonicalize the version from the request
174
174
///
175
175
/// Mainly:
176
176
/// * "newest"/"*" or empty -> "latest" in the URL
@@ -255,7 +255,7 @@ fn semver_match<'a, F: Fn(&Release) -> bool>(
255
255
// semver `*` does not match pre-releases.
256
256
// So when we only have pre-releases, `VersionReq::STAR` would lead to an
257
257
// empty result.
258
- // In this case we just return the latest latest prerelase instead of nothing.
258
+ // In this case we just return the latest prerelease instead of nothing.
259
259
return releases. iter ( ) . find ( |release| filter ( release) ) ;
260
260
} else {
261
261
None
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ impl TemplateData {
77
77
// dropped and we don't need to bother rendering the template
78
78
if !send. is_closed ( ) {
79
79
// `.send` only fails when the receiver is dropped while we were rendering,
80
- // at which point we don't need the result any more .
80
+ // at which point we don't need the result anymore .
81
81
let _ = send. send ( render_fn ( ) ) ;
82
82
}
83
83
}
Original file line number Diff line number Diff line change @@ -1027,7 +1027,7 @@ mod tests {
1027
1027
}
1028
1028
1029
1029
#[ test]
1030
- fn search_result_can_retrive_sort_by_from_pagination ( ) {
1030
+ fn search_result_can_retrieve_sort_by_from_pagination ( ) {
1031
1031
async_wrapper ( |env| async move {
1032
1032
let mut crates_io = mockito:: Server :: new_async ( ) . await ;
1033
1033
env. override_config ( |config| {
Original file line number Diff line number Diff line change @@ -2407,7 +2407,7 @@ mod test {
2407
2407
]
2408
2408
) ;
2409
2409
2410
- // test if target-redirect inludes path
2410
+ // test if target-redirect includes path
2411
2411
let releases_response = env
2412
2412
. web_app ( )
2413
2413
. await
@@ -2590,7 +2590,7 @@ mod test {
2590
2590
) ;
2591
2591
assert ! ( dom
2592
2592
. select( r#"a[href="/optional-dep/1.2.3"] > i[class="dependencies normal"] + i"# )
2593
- . expect( "shoud have optional dependency" )
2593
+ . expect( "should have optional dependency" )
2594
2594
. any( |el| { el. text_contents( ) . contains( "optional" ) } ) ) ;
2595
2595
let dom = kuchikiki:: parse_html ( ) . one (
2596
2596
env. web_app ( )
@@ -2604,7 +2604,7 @@ mod test {
2604
2604
. select(
2605
2605
r#"a[href="/crate/optional-dep/1.2.3"] > i[class="dependencies normal"] + i"#
2606
2606
)
2607
- . expect( "shoud have optional dependency" )
2607
+ . expect( "should have optional dependency" )
2608
2608
. any( |el| { el. text_contents( ) . contains( "optional" ) } ) ) ;
2609
2609
Ok ( ( ) )
2610
2610
} )
@@ -2845,7 +2845,7 @@ mod test {
2845
2845
}
2846
2846
2847
2847
#[ test_case( "something.js" ) ]
2848
- #[ test_case( "someting .css" ) ]
2848
+ #[ test_case( "something .css" ) ]
2849
2849
fn serve_release_specific_static_assets ( name : & str ) {
2850
2850
async_wrapper ( |env| async move {
2851
2851
env. async_fake_release ( )
Original file line number Diff line number Diff line change 101
101
</ div >
102
102
</ div >
103
103
104
- {# If the file exeeded the maximum size, display a warning #}
104
+ {# If the file exceeds the maximum size, display a warning #}
105
105
{%- if is_file_too_large -%}
106
106
< div id ="source-warning " class ="pure-u-1 pure-u-sm-17-24 pure-u-md-19-24 ">
107
107
< div class ="warning ">
Original file line number Diff line number Diff line change 80
80
</ li >
81
81
{%- endif -%}
82
82
83
- {# If a the crate has a repo url, show it #}
83
+ {# If the crate has a repo url, show it #}
84
84
{%- if let Some(repository_url) = krate.repository_url -%}
85
85
< li class ="pure-menu-item ">
86
86
< a href ="{{ repository_url }} " class ="pure-menu-link ">
You can’t perform that action at this time.
0 commit comments