The files are in separate crates:
components/style/selector_matching.rs vs
components/layout/layout_task.rs
Not only that, but the `layout` crate depends on the `style` crate. The
dependency can't go the other way around, because of this.
That being said, why is the code in selector_matching.r
I have declared a struct in layout_task.rs and I want to reference that struct
from selector_matching.rs
This is my code in selector_matching.rs
use layout_task::CSSErrorReporter;
let error_reporter=box CSSErrorReporter::new() as Box;
And my code in layout_task.rs
pub struct CSSErrorReporter
2 matches
Mail list logo