We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e246ad commit a03f7b0Copy full SHA for a03f7b0
.github/workflows/clippy.yml
@@ -16,7 +16,7 @@ jobs:
16
- uses: actions/checkout@v1
17
- uses: actions-rs/toolchain@v1
18
with:
19
- toolchain: nightly
+ toolchain: nightly-2021年05月16日
20
components: clippy
21
override: true
22
- uses: actions-rs/clippy-check@v1
.github/workflows/rust.yml
@@ -18,7 +18,7 @@ jobs:
- name: Set nightly toolchain
uses: actions-rs/toolchain@v1
23
- name: Environment
24
run: |
src/helper.rs
@@ -113,6 +113,7 @@ mod html {
113
114
pub fn superscript(n: u8) -> String {
115
match n {
116
+ x if x >= 10 => format!("{}{}", superscript(n / 10), superscript(n % 10)),
117
0 => "0".to_string(),
118
1 => "1".to_string(),
119
2 => "2".to_string(),
@@ -123,18 +124,13 @@ mod html {
123
124
7 => "7".to_string(),
125
8 => "8".to_string(),
126
9 => "9".to_string(),
- x if x > 10 => (superscript(n / 10).parse().unwrap_or(0)
127
- + superscript(n % 10).parse().unwrap_or(0))
128
- .to_string(),
129
_ => n.to_string(),
130
}
131
132
133
pub fn subscript(n: u8) -> String {
134
135
- x if x >= 10 => (subscript(n / 10).parse().unwrap_or(0)
136
- + subscript(n % 10).parse().unwrap_or(0))
137
+ x if x >= 10 => format!("{}{}", subscript(n / 10), subscript(n % 10)),
138
139
140
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments