mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-12-25 13:41:07 +00:00
145202e376
Two examples had a superfluous bound ': salsa::Database' that wasn't present in the `compiler` example. The `query_group` macro adds this bound automatically. This change can lead to a trailing `+` in the bounds list. I verified this is OK by running the examples and verifying that the production is allowed [per the Rust Reference](https://doc.rust-lang.org/reference/trait-bounds.html)
10 lines
243 B
Rust
10 lines
243 B
Rust
use crate::values::*;
|
|
|
|
#[salsa::query_group(InternerDatabase)]
|
|
pub trait Interner {
|
|
#[salsa::interned]
|
|
fn intern_field(&self, field: FieldData) -> Field;
|
|
|
|
#[salsa::interned]
|
|
fn intern_class(&self, class: ClassData) -> Class;
|
|
}
|