Skip to content

Commit

Permalink
style: 💄 fmt all files
Browse files Browse the repository at this point in the history
  • Loading branch information
YancyParker committed Feb 8, 2024
1 parent b5d2cb3 commit 5804234
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/irgen/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ impl<'a> Binary<'a> {
.ptr_type(AddressSpace::default())
.as_basic_type_enum(),
Type::StorageRef(r) => self
.llvm_type(r, ns)
.ptr_type(AddressSpace::default())
.as_basic_type_enum(),
.llvm_type(r, ns)
.ptr_type(AddressSpace::default())
.as_basic_type_enum(),
Type::Function {
params, returns, ..
} => {
Expand Down
4 changes: 2 additions & 2 deletions src/irgen/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::irgen::u32_op::{
u32_shift_right, u32_sub,
};
use crate::sema::ast::{ArrayLength, CallTy, StringLocation};
use inkwell::types::{self, BasicType, BasicTypeEnum};
use inkwell::types::{BasicType, BasicTypeEnum};
use inkwell::values::{
BasicMetadataValueEnum, BasicValue, BasicValueEnum, FunctionValue, IntValue,
};
Expand Down Expand Up @@ -344,7 +344,7 @@ pub fn expression<'a>(

Expression::Variable { ty, var_no, .. } => {
let ptr = var_table.get(var_no).unwrap().as_basic_value_enum();
if ty.is_reference_type(ns) {
if ty.is_reference_type(ns) {
return ptr;
}

Expand Down
2 changes: 1 addition & 1 deletion src/sema/corelib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub fn lib_namespace(namespace: &str) -> bool {

/// Is name reserved for lib function
pub fn is_reserved(fname: &str) -> bool {
if fname == "type" || fname == "super" || fname == "main"{
if fname == "type" || fname == "super" || fname == "main" {
return true;
}

Expand Down

0 comments on commit 5804234

Please sign in to comment.