Skip to content

Commit a8f7326

Browse files
jsomedonjonas-schievink
authored andcommitted
Update condition check code style
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
1 parent c92db2a commit a8f7326

File tree

1 file changed

+1
-1
lines changed
  • crates/proc_macro_api/src

1 file changed

+1
-1
lines changed

crates/proc_macro_api/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl ProcMacroClient {
155155
let header = &dot_rustc[..8];
156156
const EXPECTED_HEADER: [u8; 8] = [b'r', b'u', b's', b't', 0, 0, 0, 5];
157157
// check if header is valid
158-
if !(header == EXPECTED_HEADER) {
158+
if header != EXPECTED_HEADER {
159159
return Err(io::Error::new(io::ErrorKind::InvalidData, format!(".rustc section should start with header {:?}; header {:?} is actually presented.",EXPECTED_HEADER ,header)));
160160
}
161161

0 commit comments

Comments
 (0)