mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
Send servo version in mozbrowser error.
Also moved servo version to util for usage by the --version flag and for sending the version to browser.html with mozbrowsererror
This commit is contained in:
parent
f2d798232f
commit
ed678cb7f1
4 changed files with 9 additions and 1 deletions
|
@ -64,3 +64,7 @@ pub fn arc_ptr_eq<T: 'static>(a: &Arc<T>, b: &Arc<T>) -> bool {
|
|||
let b: &T = &**b;
|
||||
(a as *const T) == (b as *const T)
|
||||
}
|
||||
|
||||
pub fn servo_version() -> &'static str {
|
||||
concat!("Servo ", env!("CARGO_PKG_VERSION"), env!("GIT_INFO"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue