mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 18:28:13 +03:00
feat(css/modules): Add a lifetime to config parameter (#6144)
This commit is contained in:
parent
5c4a2c69b4
commit
1196d60182
@ -52,7 +52,7 @@ pub struct TransformResult {
|
||||
}
|
||||
|
||||
/// 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 {
|
||||
config,
|
||||
data: Default::default(),
|
||||
|
Loading…
Reference in New Issue
Block a user