@@ -3,7 +3,7 @@ use std::env;
33
44/// If we use a pager, this enum tells us from where we were told to use it.
55#[derive(Debug, PartialEq)]
6−pub enum PagerSource {
6+pub(crate) enum PagerSource {
77 /// From --config
88 Config,
99
@@ -19,7 +19,7 @@ pub enum PagerSource {
1919
2020/// We know about some pagers, for example 'less'. This is a list of all pagers we know about
2121#[derive(Debug, PartialEq)]
22−pub enum PagerKind {
22+pub(crate) enum PagerKind {
2323 /// The pager is ourselves
2424 Bat,
2525
@@ -61,7 +61,7 @@ impl PagerKind {
6161
6262/// A pager such as 'less', and from where we got it.
6363#[derive(Debug)]
64−pub struct Pager {
64+pub(crate) struct Pager {
6565 // The pager binary
6666 pub bin: String,
6767
@@ -87,7 +87,7 @@ impl Pager {
8787}
8888
8989/// Returns what pager to use, after looking at both config and environment variables.
90−pub fn get_pager(config_pager: Option<&str>) -> Result<Option<Pager>, ParseError> {
90+pub(crate) fn get_pager(config_pager: Option<&str>) -> Result<Option<Pager>, ParseError> {
9191 let bat_pager = env::var("BAT_PAGER");
9292 let pager = env::var("PAGER");
9393