Skip to content

Commit 7a0a5d4

Browse files
committed
Fix build error
1 parent bbc3ce6 commit 7a0a5d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generate/device.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
152152
if config.generic_mod {
153153
let mut file = File::create(config.output_dir.join("generic.rs"))?;
154154
writeln!(file, "{}", generic_file)?;
155-
if config.target == config.nightly {
155+
if config.nightly {
156156
writeln!(file, "\n{}", generic_atomic_file)?;
157157
}
158158
if config.const_generic {
@@ -169,7 +169,7 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
169169
}
170170
} else {
171171
let mut tokens = syn::parse_file(generic_file)?.into_token_stream();
172-
if config.target == config.nightly {
172+
if config.nightly {
173173
syn::parse_file(generic_atomic_file)?.to_tokens(&mut tokens);
174174
}
175175
if config.const_generic {

0 commit comments

Comments
 (0)