Skip to content

Commit

Permalink
local
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Oct 20, 2023
1 parent d2d40f5 commit 0aa416b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crates/libs/metadata/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,6 @@ pub fn coded_index_size(tables: &[usize]) -> usize {
}
}

fn trim_tick(name: &str) -> &str {
if name.as_bytes().iter().rev().nth(1) == Some(&b'`') {
&name[..name.len() - 2]
} else {
name
}
}

#[derive(Debug)]
pub enum Value {
Bool(bool),
Expand Down
8 changes: 8 additions & 0 deletions crates/libs/metadata/src/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,3 +410,11 @@ impl TypeRef {
self.decode(0)
}
}

fn trim_tick(name: &str) -> &str {
if name.as_bytes().iter().rev().nth(1) == Some(&b'`') {
&name[..name.len() - 2]
} else {
name
}
}

0 comments on commit 0aa416b

Please sign in to comment.