summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/mod.rs4
-rw-r--r--src/render/stream.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/render/mod.rs b/src/render/mod.rs
index 1e20ccc..dc4c081 100644
--- a/src/render/mod.rs
+++ b/src/render/mod.rs
@@ -5,7 +5,7 @@ pub use self::markdown::{MarkdownRender, RenderOptions};
use self::stream::{markdown_stream, raw_stream};
use crate::client::Client;
-use crate::config::GlobalConfig;
+use crate::config::{GlobalConfig, Input};
use crate::utils::AbortSignal;
use anyhow::{Context, Result};
@@ -17,7 +17,7 @@ use std::io::stdout;
use std::thread::spawn;
pub fn render_stream(
- input: &str,
+ input: &Input,
client: &dyn Client,
config: &GlobalConfig,
abort: AbortSignal,
diff --git a/src/render/stream.rs b/src/render/stream.rs
index bc56db8..2c05119 100644
--- a/src/render/stream.rs
+++ b/src/render/stream.rs
@@ -167,7 +167,7 @@ struct Spinner {
}
impl Spinner {
- const DATA: [&str; 10] = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
+ const DATA: [&'static str; 10] = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
fn new(message: &str) -> Self {
Spinner {