Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Feb 24, 2022
1 parent 59b49b7 commit e527fc0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bindgen/ir/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@

use std::io::Write;

use cbindgen::Language;
use syn::ext::IdentExt;

use crate::bindgen::cdecl;
use crate::bindgen::config::Config;
use crate::bindgen::declarationtyperesolver::DeclarationTypeResolver;
use crate::bindgen::dependencies::Dependencies;
use crate::bindgen::ir::{AnnotationSet, Cfg, Documentation, Item, ItemContainer, Path, Type};
use crate::bindgen::library::Library;
use crate::bindgen::writer::{Source, SourceWriter};
use crate::bindgen::{cdecl, Language};

#[derive(Debug, Clone)]
pub struct Static {
Expand Down Expand Up @@ -111,7 +110,6 @@ impl Source for Static {
fn write<F: Write>(&self, config: &Config, out: &mut SourceWriter<F>) {
if config.language != Language::Zig {
out.write("extern ");

if let Type::Ptr { is_const: true, .. } = self.ty {
} else if !self.mutable {
out.write("const ");
Expand Down

0 comments on commit e527fc0

Please sign in to comment.