mirror of
https://github.com/veeso/termscp.git
synced 2026-09-27 22:41:19 -07:00
fix: tuirealm 2.x (#299)
This commit is contained in:
@@ -1036,7 +1036,7 @@ pub struct ProgressBarFull {
|
||||
}
|
||||
|
||||
impl ProgressBarFull {
|
||||
pub fn new<S: AsRef<str>>(prog: f64, label: S, title: S, color: Color) -> Self {
|
||||
pub fn new<S: Into<String>>(prog: f64, label: S, title: S, color: Color) -> Self {
|
||||
Self {
|
||||
component: ProgressBar::default()
|
||||
.borders(
|
||||
@@ -1074,7 +1074,7 @@ pub struct ProgressBarPartial {
|
||||
}
|
||||
|
||||
impl ProgressBarPartial {
|
||||
pub fn new<S: AsRef<str>>(prog: f64, label: S, title: S, color: Color) -> Self {
|
||||
pub fn new<S: Into<String>>(prog: f64, label: S, title: S, color: Color) -> Self {
|
||||
Self {
|
||||
component: ProgressBar::default()
|
||||
.borders(
|
||||
|
||||
Reference in New Issue
Block a user