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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user