1
0
mirror of https://github.com/TaKO8Ki/gobang.git synced 2021-09-19 22:32:56 +03:00

use version module

This commit is contained in:
Takayuki Maeda
2021-09-06 22:29:24 +09:00
parent c2ee3776dd
commit 83b3e21997

View File

@@ -2,6 +2,7 @@ use super::{Component, DrawableComponent, EventState};
use crate::components::command::CommandInfo;
use crate::config::KeyConfig;
use crate::event::Key;
use crate::version::Version;
use anyhow::Result;
use itertools::Itertools;
use std::convert::From;
@@ -58,7 +59,7 @@ impl DrawableComponent for HelpComponent {
f.render_widget(
Paragraph::new(Spans::from(vec![Span::styled(
format!("gobang {}", "0.1.0"),
format!("gobang {}", Version::new()),
Style::default(),
)]))
.alignment(Alignment::Right),