diff options
author | Oliver looney <oliverjlooney@gmail.com> | 2024-02-08 21:41:20 +0000 |
---|---|---|
committer | Oliver looney <oliverjlooney@gmail.com> | 2024-02-08 21:41:20 +0000 |
commit | 02077db53e36b157e1a12496b8315c77514de0a0 (patch) | |
tree | 8b74801debf49a697717cf80a95ace46f84070ab /src | |
parent | 7ce010d9edf6d82f7013af2c711308f38fc680d6 (diff) |
undid unnecessary api visibility changes
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/bat/main.rs | 2 | ||||
-rw-r--r-- | src/input.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/bat/main.rs b/src/bin/bat/main.rs index a21009f0..afc0d59b 100644 --- a/src/bin/bat/main.rs +++ b/src/bin/bat/main.rs @@ -240,7 +240,7 @@ fn set_terminal_title_to(new_terminal_title: String) { fn get_new_terminal_title(inputs: &Vec<Input>) -> String { let mut new_terminal_title = "bat: ".to_string(); for (index, input) in inputs.iter().enumerate() { - new_terminal_title += &input.description.name.to_string(); + new_terminal_title += input.description().title(); if index < inputs.len() - 1 { new_terminal_title += ", "; } diff --git a/src/input.rs b/src/input.rs index 724c5e15..ccab98bf 100644 --- a/src/input.rs +++ b/src/input.rs @@ -13,7 +13,7 @@ use crate::error::*; /// This tells bat how to refer to the input. #[derive(Clone)] pub struct InputDescription { - pub name: String, + pub(crate) name: String, /// The input title. /// This replaces the name if provided. @@ -94,7 +94,7 @@ pub(crate) struct InputMetadata { pub struct Input<'a> { pub(crate) kind: InputKind<'a>, pub(crate) metadata: InputMetadata, - pub description: InputDescription, + pub(crate) description: InputDescription, } pub(crate) enum OpenedInputKind { |