mirror of
https://github.com/servo/servo.git
synced 2025-06-30 03:53:37 +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. |
||
---|---|---|
.. | ||
.cargo | ||
platform/macos | ||
build.rs | ||
Cargo.lock | ||
Cargo.toml | ||
fake-ld.cmd | ||
fake-ld.sh | ||
lib.rs | ||
main.rs | ||
servo.exe.manifest |