feat(css/modules): Add a lifetime to config parameter (#6144)

This commit is contained in:
Donny/강동윤 2022-10-14 10:40:50 +09:00 committed by GitHub
parent 5c4a2c69b4
commit 1196d60182
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ pub struct TransformResult {
} }
/// Returns a map from local name to exported name. /// Returns a map from local name to exported name.
pub fn compile(ss: &mut Stylesheet, config: impl TransformConfig) -> TransformResult { pub fn compile<'a>(ss: &mut Stylesheet, config: impl 'a + TransformConfig) -> TransformResult {
let mut compiler = Compiler { let mut compiler = Compiler {
config, config,
data: Default::default(), data: Default::default(),