Skip to content

Commit

Permalink
chore: clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Feb 19, 2022
1 parent 41053e2 commit cc961d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/log/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ impl OutputBuilder {

/// Try to get path to pager from the given environment variable
/// If this method is called several times, the last existing environment variable will be used
#[must_use]
pub fn with_pager_from_env(self, env_key: &str) -> Self {
let pager_cmd = std::env::var(env_key).ok();

Expand All @@ -92,6 +93,7 @@ impl OutputBuilder {
}

/// Specify the file name to be displayed in the pager header (corresponds to bat `--file-name` parameter)
#[must_use]
pub fn with_file_name(self, file_name: impl Into<String>) -> Self {
OutputBuilder {
file_name: Some(file_name.into()),
Expand Down

0 comments on commit cc961d3

Please sign in to comment.