aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/textmetrics.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2020-01-20 04:05:27 -0500
committerGitHub <noreply@github.com>2020-01-20 04:05:27 -0500
commit74d1f02a6a5668d64ea9f831e514b281d1a16864 (patch)
treec5e24513f2d3aec33caf3ce47ade0fa331c440c5 /components/script/dom/textmetrics.rs
parent544c41b51f3406544329f83ccea41205eff5a507 (diff)
parentf7db4b7f8011239f01c3ba2e5e402c866fbe68fb (diff)
downloadservo-74d1f02a6a5668d64ea9f831e514b281d1a16864.tar.gz
servo-74d1f02a6a5668d64ea9f831e514b281d1a16864.zip
Auto merge of #25547 - kunalmohan:25531-SnakeCase, r=jdm
Modify `script` to prevent further violations of snake_case <!-- Please describe your changes on the following line: --> Remove `#![allow(non_snake_case)]` from `script/lib.rs` and add `#[allow(non_snake_case)]` at each instance of violation. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25531 (GitHub issue number if applicable) <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/script/dom/textmetrics.rs')
-rw-r--r--components/script/dom/textmetrics.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/textmetrics.rs b/components/script/dom/textmetrics.rs
index 867071bd0aa..eca24e19452 100644
--- a/components/script/dom/textmetrics.rs
+++ b/components/script/dom/textmetrics.rs
@@ -11,6 +11,7 @@ use crate::dom::globalscope::GlobalScope;
use dom_struct::dom_struct;
#[dom_struct]
+#[allow(non_snake_case)]
pub struct TextMetrics {
reflector_: Reflector,
width: Finite<f64>,
@@ -27,6 +28,7 @@ pub struct TextMetrics {
ideographicBaseline: Finite<f64>,
}
+#[allow(non_snake_case)]
impl TextMetrics {
fn new_inherited(
width: f64,