@@ -47,7 +47,7 @@ pub fn identify(
47
47
let idres = identify_data ( & store, & content. into ( ) , optimize, want_diff) ;
48
48
let file_lossy = filename. to_string_lossy ( ) ;
49
49
let fileres = FileResult :: from_identification_result ( & file_lossy, & idres) ;
50
- fileres. print_as ( & output_format, false ) ;
50
+ fileres. print_as ( output_format, false ) ;
51
51
52
52
return idres. map ( |_| ( ) ) ;
53
53
}
@@ -69,14 +69,14 @@ pub fn identify(
69
69
path : & buf,
70
70
error : format ! ( "Input error: {}" , e) ,
71
71
} ;
72
- fileres. print_as ( & output_format, false ) ;
72
+ fileres. print_as ( output_format, false ) ;
73
73
continue ;
74
74
}
75
75
} ;
76
76
77
77
let idres = identify_data ( & store, & content. into ( ) , optimize, want_diff) ;
78
78
let fileres = FileResult :: from_identification_result ( & buf, & idres) ;
79
- fileres. print_as ( & output_format, false ) ;
79
+ fileres. print_as ( output_format, false ) ;
80
80
}
81
81
82
82
Ok ( ( ) )
@@ -113,7 +113,7 @@ pub fn identify_data(
113
113
. map ( |cr| CLIContainedResult {
114
114
score : cr. score ,
115
115
license : CLIIdentifiedLicense {
116
- aliases : store. aliases ( & cr. license . name ) . unwrap ( ) . clone ( ) ,
116
+ aliases : store. aliases ( cr. license . name ) . unwrap ( ) . clone ( ) ,
117
117
name : cr. license . name . to_owned ( ) ,
118
118
kind : cr. license . kind ,
119
119
} ,
@@ -125,13 +125,13 @@ pub fn identify_data(
125
125
// include the overall license if present
126
126
if let Some ( license) = result. license {
127
127
output. license = Some ( CLIIdentifiedLicense {
128
- aliases : store. aliases ( & license. name ) . unwrap ( ) . clone ( ) ,
128
+ aliases : store. aliases ( license. name ) . unwrap ( ) . clone ( ) ,
129
129
name : license. name . to_owned ( ) ,
130
130
kind : license. kind ,
131
131
} ) ;
132
132
133
133
if want_diff {
134
- diff_result ( & text_data, & license. data ) ;
134
+ diff_result ( text_data, license. data ) ;
135
135
}
136
136
137
137
return Ok ( output) ;
@@ -140,7 +140,7 @@ pub fn identify_data(
140
140
// not a good enough match overall, but maybe inside
141
141
if !output. containing . is_empty ( ) {
142
142
if want_diff {
143
- diff_result ( & text_data, & result. containing [ 0 ] . license . data ) ;
143
+ diff_result ( text_data, result. containing [ 0 ] . license . data ) ;
144
144
}
145
145
return Ok ( output) ;
146
146
}
0 commit comments