File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ mod test {
104
104
#[ test]
105
105
fn test_is_license_file ( ) {
106
106
for file_name in LICENSE_FILES . iter ( ) {
107
- assert_eq ! ( is_license_file( file_name) , true ) ;
107
+ assert ! ( is_license_file( file_name) ) ;
108
108
}
109
- assert_eq ! ( is_license_file( "NOT_LICENSE" ) , false ) ;
109
+ assert ! ( ! is_license_file( "NOT_LICENSE" ) ) ;
110
110
}
111
111
112
112
#[ test]
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ impl std::fmt::Display for Title {
85
85
mod tests {
86
86
use super :: * ;
87
87
use git_repository:: { open, Repository , ThreadSafeRepository } ;
88
- use git_testtools ;
88
+
89
89
use owo_colors:: AnsiColors ;
90
90
91
91
type Result < T = ( ) > = std:: result:: Result < T , Box < dyn std:: error:: Error > > ;
@@ -123,12 +123,12 @@ mod tests {
123
123
// setting git_version to known value
124
124
title. git_version = "git version 2.37.2" . to_string ( ) ;
125
125
assert ! ( title. to_string( ) . contains( "onefetch-committer-name" ) ) ;
126
- assert ! ( title. to_string( ) . contains( "~" ) ) ;
126
+ assert ! ( title. to_string( ) . contains( '~' ) ) ;
127
127
assert ! ( title. to_string( ) . contains( "git version 2.37.2" ) ) ;
128
128
129
129
title. git_version = "" . to_string ( ) ;
130
130
assert ! ( title. to_string( ) . contains( "onefetch-committer-name" ) ) ;
131
- assert ! ( !title. to_string( ) . contains( "~" ) ) ;
131
+ assert ! ( !title. to_string( ) . contains( '~' ) ) ;
132
132
assert ! ( !title. to_string( ) . contains( "git version 2.37.2" ) ) ;
133
133
134
134
title. git_username = "" . to_string ( ) ;
You can’t perform that action at this time.
0 commit comments