Skip to content

Commit b8169e1

Browse files
committed
fix: show plain commit id in about version line
1 parent 76746f7 commit b8169e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3234,7 +3234,7 @@ mod tests {
32343234
fn about_text_includes_build_commit_in_version_line() {
32353235
let text = super::build_about_text();
32363236
assert!(text.contains(&format!("v{}", env!("CARGO_PKG_VERSION"))));
3237-
assert!(text.contains(&format!("(<code>{}</code>)", super::BUILD_GIT_COMMIT)));
3237+
assert!(text.contains(&format!("({})", super::BUILD_GIT_COMMIT)));
32383238
}
32393239
}
32403240

@@ -3331,7 +3331,7 @@ const BUILD_GIT_COMMIT: &str = match option_env!("BUILD_GIT_COMMIT") {
33313331

33323332
fn build_about_text() -> String {
33333333
format!(
3334-
r"🎵 Music163bot-Rust v{} (<code>{}</code>)
3334+
r"🎵 Music163bot-Rust v{} ({})
33353335
33363336
一个用来下载/分享/搜索网易云歌曲的 Telegram Bot
33373337

0 commit comments

Comments
 (0)