@@ -3,7 +3,7 @@ use std::env;
4/// If we use a pager, this enum tells us from where we were told to use it.
4/// If we use a pager, this enum tells us from where we were told to use it.
5#[derive(Debug, PartialEq)]
5#[derive(Debug, PartialEq)]
6−pub enum PagerSource {
6+pub(crate) enum PagerSource {
7 /// From --config
7 /// From --config
@@ -19,7 +19,7 @@ pub enum PagerSource {
20/// We know about some pagers, for example 'less'. This is a list of all pagers we know about
20/// We know about some pagers, for example 'less'. This is a list of all pagers we know about
21#[derive(Debug, PartialEq)]
21#[derive(Debug, PartialEq)]
22−pub enum PagerKind {
22+pub(crate) enum PagerKind {
23 /// The pager is ourselves
23 /// The pager is ourselves
@@ -61,7 +61,7 @@ impl PagerKind {
62/// A pager such as 'less', and from where we got it.
62/// A pager such as 'less', and from where we got it.
63#[derive(Debug)]
63#[derive(Debug)]
64−pub struct Pager {
64+pub(crate) struct Pager {
65 // The pager binary
65 // The pager binary
66 pub bin: String,
66 pub bin: String,
@@ -87,7 +87,7 @@ impl Pager {
89/// Returns what pager to use, after looking at both config and environment variables.
89/// 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> {
91 let bat_pager = env::var("BAT_PAGER");
91 let bat_pager = env::var("BAT_PAGER");
92 let pager = env::var("PAGER");
92 let pager = env::var("PAGER");