config: Derive defaults for Opts. (#35057)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2025-01-18 04:23:36 -05:00 committed by GitHub
parent d5993a0cea
commit 90cbb8abdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ use servo_geometry::DeviceIndependentPixel;
use servo_url::ServoUrl;
/// Global flags for Servo, currently set on the command line.
#[derive(Clone, Debug, Deserialize, Serialize)]
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct Opts {
/// Whether or not the legacy layout system is enabled.
pub legacy_layout: bool,