Skip to content

Commit

Permalink
fix: Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Dec 23, 2023
1 parent 641f872 commit eabcc62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/configuration/config_test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use anyhow::Result;
use test_utils::insta_snapshot;

use anyhow::Result;
use super::Config;
use crate::application::cli;

Expand All @@ -24,7 +24,8 @@ async fn it_loads_config_from_file() -> Result<()> {

#[tokio::test]
async fn it_fails_to_loads_config_from_file() -> Result<()> {
let matches = cli::build().try_get_matches_from(vec!["chat", "-c", "./test/bad-config.toml"])?;
let matches =
cli::build().try_get_matches_from(vec!["chat", "-c", "./test/bad-config.toml"])?;
let res = Config::load(cli::build(), vec![&matches]).await;
assert!(res.is_err());
return Ok(());
Expand Down
2 changes: 1 addition & 1 deletion src/domain/services/scroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl Scroll {
}

pub fn is_position_at_last(&self) -> bool {
return self.position == self.get_position_as_if_last()
return self.position == self.get_position_as_if_last();
}

pub fn last(&mut self) {
Expand Down

0 comments on commit eabcc62

Please sign in to comment.