mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-22 12:56:33 +00:00
Remove ': salsa::Database' bound from two examples
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)
This commit is contained in:
parent
2ae813e9ef
commit
145202e376
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
use crate::values::*;
|
||||
|
||||
#[salsa::query_group(InternerDatabase)]
|
||||
pub trait Interner: salsa::Database {
|
||||
pub trait Interner {
|
||||
#[salsa::interned]
|
||||
fn intern_field(&self, field: FieldData) -> Field;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ use std::sync::Arc;
|
|||
// trait for that query group as a supertrait.
|
||||
// ANCHOR:trait
|
||||
#[salsa::query_group(HelloWorldStorage)]
|
||||
trait HelloWorld: salsa::Database {
|
||||
trait HelloWorld {
|
||||
// For each query, we give the name, some input keys (here, we
|
||||
// have one key, `()`) and the output type `Arc<String>`. We can
|
||||
// use attributes to give other configuration:
|
||||
|
|
Loading…
Reference in a new issue