mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
style: Use write_char in place of write_str when serializing single-character literals
Generated by running find servo/components/style -name "*.rs" -exec perl -p -i -e "s/write_str\(\"(.)\"\)/write_char('\1')/g" {} \; (and then added `use std::fmt::Write;` in a couple of places to fix build errors that arose). Differential Revision: https://phabricator.services.mozilla.com/D168217
This commit is contained in:
parent
05fb1b62b7
commit
8a2cfc0b24
52 changed files with 131 additions and 129 deletions
|
@ -11,6 +11,7 @@ use servo_arc::Arc;
|
|||
use std::marker::PhantomData;
|
||||
use std::ops::{Deref, DerefMut};
|
||||
use std::{fmt, mem, ptr};
|
||||
use std::fmt::Write;
|
||||
|
||||
/// Trait for all objects that have Addref() and Release
|
||||
/// methods and can be placed inside RefPtr<T>
|
||||
|
@ -35,7 +36,7 @@ impl<T: RefCounted> fmt::Debug for RefPtr<T> {
|
|||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.write_str("RefPtr { ")?;
|
||||
self.ptr.fmt(f)?;
|
||||
f.write_str("}")
|
||||
f.write_char('}')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue