HomePhabricator
Diffusion Comm 4d5e74a9f80d

[services] Tests - Use lazy static instead of functions

Description

[services] Tests - Use lazy static instead of functions

Summary:
Depends on D4413

Suggested in https://phab.comm.dev/D4325#124852
We can use Rust's lazy_static instead of functions to have static variables calculated in the runtime

Test Plan: services tests work as before

Reviewers: palys-swm, ashoat

Reviewed By: palys-swm, ashoat

Subscribers: ashoat, palys-swm, Adrian, atul, yayabosh

Differential Revision: https://phab.comm.dev/D4425

Details

Provenance
karolAuthored on Jul 1 2022, 6:11 AM
Reviewer
tomek
Differential Revision
D4425: [services] Tests - Use lazy static instead of functions
Parents
rCOMM68aa78321a3c: [services] Tests - run cargo fmt
Branches
Unknown
Tags
Unknown