gfx: to_string() -> into_string()

This commit is contained in:
Manish Goregaokar 2014-12-14 03:59:03 +05:30 committed by Ms2ger
parent 3af73e9962
commit e973213606
9 changed files with 42 additions and 42 deletions

View file

@ -181,7 +181,7 @@ impl FontCache {
// TODO(Issue #188): look up localized font family names if canonical name not found
// look up canonical name
if self.local_families.contains_key(family_name) {
debug!("FontList: Found font family with name={:s}", family_name.to_string());
debug!("FontList: Found font family with name={:s}", family_name.as_slice());
let s = &mut self.local_families[*family_name];
if s.templates.len() == 0 {
@ -199,7 +199,7 @@ impl FontCache {
None
} else {
debug!("FontList: Couldn't find font family with name={:s}", family_name.to_string());
debug!("FontList: Couldn't find font family with name={:s}", family_name.as_slice());
None
}
}