Skip to content

Commit 3a3b1c6

Browse files
committed
Merge branch 'main' of github.com:o2sh/onefetch
2 parents 7f37df1 + e94a273 commit 3a3b1c6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/info/repo/license.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ mod test {
104104
#[test]
105105
fn test_is_license_file() {
106106
for file_name in LICENSE_FILES.iter() {
107-
assert_eq!(is_license_file(file_name), true);
107+
assert!(is_license_file(file_name));
108108
}
109-
assert_eq!(is_license_file("NOT_LICENSE"), false);
109+
assert!(!is_license_file("NOT_LICENSE"));
110110
}
111111

112112
#[test]

src/info/title.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl std::fmt::Display for Title {
8585
mod tests {
8686
use super::*;
8787
use git_repository::{open, Repository, ThreadSafeRepository};
88-
use git_testtools;
88+
8989
use owo_colors::AnsiColors;
9090

9191
type Result<T = ()> = std::result::Result<T, Box<dyn std::error::Error>>;
@@ -123,12 +123,12 @@ mod tests {
123123
// setting git_version to known value
124124
title.git_version = "git version 2.37.2".to_string();
125125
assert!(title.to_string().contains("onefetch-committer-name"));
126-
assert!(title.to_string().contains("~"));
126+
assert!(title.to_string().contains('~'));
127127
assert!(title.to_string().contains("git version 2.37.2"));
128128

129129
title.git_version = "".to_string();
130130
assert!(title.to_string().contains("onefetch-committer-name"));
131-
assert!(!title.to_string().contains("~"));
131+
assert!(!title.to_string().contains('~'));
132132
assert!(!title.to_string().contains("git version 2.37.2"));
133133

134134
title.git_username = "".to_string();

0 commit comments

Comments
 (0)