Cache Clauses::empty()
This commit is contained in:
parent
7bbe9029fb
commit
29aad0493b
1 changed files with 2 additions and 3 deletions
|
|
@ -273,9 +273,8 @@ impl<'db> std::fmt::Debug for Clauses<'db> {
|
|||
|
||||
impl<'db> Clauses<'db> {
|
||||
#[inline]
|
||||
pub fn empty(_interner: DbInterner<'db>) -> Self {
|
||||
// FIXME: Get from a static.
|
||||
Self::new_from_slice(&[])
|
||||
pub fn empty(interner: DbInterner<'db>) -> Self {
|
||||
interner.default_types().empty.clauses
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue