summaryrefslogtreecommitdiff
path: root/src/types.rs
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2015-03-22 14:20:53 -0700
committerTamir Duberstein <tamird@gmail.com>2015-03-22 15:56:37 -0700
commitb1bf46eb9e90633b0657bb48218ed61a6a99810c (patch)
treebb3808eb53297ffb21f785e295a458b3b3e70fe3 /src/types.rs
parent51401e6c85af20e391127803d75e6d69832ebdb6 (diff)
Clean up `allow`s
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.rs b/src/types.rs
index 5d7c5669..88b73e51 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -91,7 +91,6 @@ pub enum Type {
TEnum(Rc<RefCell<EnumInfo>>)
}
-#[allow(dead_code)]
impl Type {
pub fn size(&self) -> usize {
match self {
@@ -108,6 +107,7 @@ impl Type {
}
}
+ #[allow(dead_code)]
pub fn align(&self) -> usize {
match self {
&TInt(_, l) => l.align,