diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-08-15 01:29:40 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-08-18 17:54:54 +0200 |
commit | e9a99b2a7f1fd76b1beaadea1355074d0806eac0 (patch) | |
tree | d65204f5f6ed17482d7dfcac3a05645b79df2bc0 /components/style/gecko_string_cache | |
parent | fe05c8ecadcc999eb9cb3995033c9f70c4cc36c6 (diff) | |
download | servo-e9a99b2a7f1fd76b1beaadea1355074d0806eac0.tar.gz servo-e9a99b2a7f1fd76b1beaadea1355074d0806eac0.zip |
style: Manually inline class and ID getters.
Somewhat ugly but hopefully not too much. Somehow it ends up removing more lines
than adding.
Differential Revision: https://phabricator.services.mozilla.com/D3536
Diffstat (limited to 'components/style/gecko_string_cache')
-rw-r--r-- | components/style/gecko_string_cache/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/gecko_string_cache/mod.rs b/components/style/gecko_string_cache/mod.rs index e70c7a47c36..70217f233de 100644 --- a/components/style/gecko_string_cache/mod.rs +++ b/components/style/gecko_string_cache/mod.rs @@ -263,7 +263,7 @@ impl fmt::Display for WeakAtom { impl Atom { /// Execute a callback with the atom represented by `ptr`. - pub unsafe fn with<F, R>(ptr: *mut nsAtom, callback: F) -> R + pub unsafe fn with<F, R>(ptr: *const nsAtom, callback: F) -> R where F: FnOnce(&Atom) -> R, { |