Take immutable Atom in RenderPass::overlays

This commit is contained in:
Tad Hardesty 2019-11-16 16:04:02 -08:00
parent 457dbbabd9
commit ad5f1b6de2
3 changed files with 5 additions and 5 deletions

View file

@ -48,7 +48,7 @@ pub trait RenderPass: Sync {
/// Apply overlays and underlays to an atom, in the form of pseudo-atoms.
fn overlays<'a>(&self,
atom: &mut Atom<'a>,
atom: &Atom<'a>,
objtree: &'a ObjectTree,
underlays: &mut Vec<Atom<'a>>,
overlays: &mut Vec<Atom<'a>>,
@ -181,7 +181,7 @@ pub struct FakeGlass;
impl RenderPass for FakeGlass {
fn overlays<'a>(
&self,
atom: &mut Atom<'a>,
atom: &Atom<'a>,
_objtree: &'a ObjectTree,
underlays: &mut Vec<Atom<'a>>,
_overlays: &mut Vec<Atom<'a>>,
@ -213,7 +213,7 @@ impl RenderPass for Pretty {
}
fn overlays<'a>(&self,
atom: &mut Atom<'a>,
atom: &Atom<'a>,
objtree: &'a ObjectTree,
_: &mut Vec<Atom<'a>>,
overlays: &mut Vec<Atom<'a>>,

View file

@ -73,7 +73,7 @@ impl RenderPass for GravityGen {
/// Apply overlays and underlays to an atom, in the form of pseudo-atoms.
fn overlays<'a>(&self,
atom: &mut Atom<'a>,
atom: &Atom<'a>,
objtree: &'a ObjectTree,
_underlays: &mut Vec<Atom<'a>>,
overlays: &mut Vec<Atom<'a>>,

View file

@ -4,7 +4,7 @@ use super::*;
pub struct TransitTube;
impl RenderPass for TransitTube {
fn overlays<'a>(&self,
atom: &mut Atom<'a>,
atom: &Atom<'a>,
objtree: &'a ObjectTree,
_: &mut Vec<Atom<'a>>,
overlays: &mut Vec<Atom<'a>>,