mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
In most scenarios, where the user of Servo will not override the default user agent, the user agent can be a `&'static str`. But since we allow for customization, we currently use a `String` to represent the user agent. This commit migrates the user agent to be represented as a `Cow<'static, str>`, which (at the cost of ergonomics) prevents unnecessary allocations whenever cloning the user agent string in the scenario the user doesn't override the user agent. |
||
---|---|---|
.. | ||
basedir.rs | ||
Cargo.toml | ||
geometry.rs | ||
ipc.rs | ||
lib.rs | ||
opts.rs | ||
prefs.rs | ||
remutex.rs | ||
resource_files.rs | ||
thread.rs |