1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00

fix warning on win32

This commit is contained in:
Wez Furlong 2021-03-26 09:10:32 -07:00
parent 64236c6216
commit cfe6894e83

View File

@ -222,7 +222,7 @@ impl FontLocator for GdiFontLocator {
struct Source { struct Source {
locale: String, locale: String,
len: u32, len: u32,
}; }
impl dwrote::TextAnalysisSourceMethods for Source { impl dwrote::TextAnalysisSourceMethods for Source {
fn get_locale_name<'a>(&'a self, _: u32) -> (Cow<'a, str>, u32) { fn get_locale_name<'a>(&'a self, _: u32) -> (Cow<'a, str>, u32) {
(Cow::Borrowed(&self.locale), self.len) (Cow::Borrowed(&self.locale), self.len)