diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-11 14:01:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-11 14:01:45 +0800 |
| commit | 861529374726609a56f6b8af1145a0df5c924dcc (patch) | |
| tree | 78c7636f7e65d8bea24a7566010b2663840b9e2a /src/utils/mod.rs | |
| parent | 822688a06a2dd2c45c7a1d5fd32f8f0d415d8620 (diff) | |
| download | aichat-861529374726609a56f6b8af1145a0df5c924dcc.tar.gz | |
feat: add config `dangerously_functions` (#582)
Diffstat (limited to 'src/utils/mod.rs')
| -rw-r--r-- | src/utils/mod.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs index cd00cc5..5c34a54 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -151,14 +151,6 @@ pub fn dimmed_text(input: &str) -> String { nu_ansi_term::Style::new().dimmed().paint(input).to_string() } -pub fn indent_text(text: &str, spaces: usize) -> String { - let indent_size = " ".repeat(spaces); - text.lines() - .map(|line| format!("{}{}", indent_size, line)) - .collect::<Vec<String>>() - .join("\n") -} - #[cfg(test)] mod tests { use super::*; |
