File tree 3 files changed +9
-8
lines changed
3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
- use std:: collections:: BTreeMap ;
2
1
use serde:: Deserialize ;
2
+ use std:: collections:: BTreeMap ;
3
3
4
4
#[ derive( Deserialize ) ]
5
5
pub struct Target {
@@ -21,4 +21,3 @@ pub struct Packages {
21
21
pub struct Channel {
22
22
pub pkg : Packages ,
23
23
}
24
-
Original file line number Diff line number Diff line change @@ -130,8 +130,10 @@ impl Blacksmith {
130
130
131
131
// Go over stable versions in https://static.rust-lang.org/manifests.txt in reverse order.
132
132
let manifests_content = reqwest:: blocking:: get ( MANIFESTS_URL ) ?. text ( ) ?;
133
- let stable_manifest_url_regex =
134
- regex:: Regex :: new ( r"^static\.rust-lang\.org/dist/\d{4}-\d{2}-\d{2}/channel-rust-1\.(\d+)\.(\d+)\.toml$" ) . unwrap ( ) ;
133
+ let stable_manifest_url_regex = regex:: Regex :: new (
134
+ r"^static\.rust-lang\.org/dist/\d{4}-\d{2}-\d{2}/channel-rust-1\.(\d+)\.(\d+)\.toml$" ,
135
+ )
136
+ . unwrap ( ) ;
135
137
for manifest_url in manifests_content. lines ( ) . rev ( ) {
136
138
let minor;
137
139
let patch;
@@ -141,14 +143,14 @@ impl Blacksmith {
141
143
minor = captures. get ( 1 ) . unwrap ( ) . as_str ( ) ;
142
144
patch = captures. get ( 2 ) . unwrap ( ) . as_str ( ) ;
143
145
} else {
144
- continue
146
+ continue ;
145
147
}
146
148
147
149
let full_version = format ! ( "1.{}.{}" , minor, patch) ;
148
150
149
151
// Skip latest stable version.
150
152
if & full_version == latest_stable_version {
151
- continue
153
+ continue ;
152
154
}
153
155
154
156
// Download https://static.rust-lang.org/dist/channel-rust-{major.minor.patch}.toml and process it.
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ command = "./build.bash"
11
11
12
12
[output .html ]
13
13
additional-js = [" js/moment.min.js" , " js/index.js" ]
14
- no-section-label = true
15
- git-repository-url = " https://github.com/rust-lang/rust-forge"
14
+ no-section-label = true
15
+ git-repository-url = " https://github.com/rust-lang/rust-forge"
16
16
edit-url-template = " https://github.com/rust-lang/rust-forge/edit/master/{path}"
17
17
curly-quotes = true
18
18
You can’t perform that action at this time.
0 commit comments