1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

Fix compiler warnings

This commit is contained in:
Joe Wilm 2016-02-27 14:45:26 -08:00
parent 7e9888b1f5
commit 7a1ed7b46f

View file

@ -92,7 +92,7 @@ pub struct Family {
impl fmt::Display for Family {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
try!(write!(f, "{}: ", self.name));
for (k, v) in &self.variants {
for (k, _v) in &self.variants {
try!(write!(f, "{}, ", k));
}
@ -101,11 +101,6 @@ impl fmt::Display for Family {
}
impl Family {
#[inline]
pub fn name(&self) -> &str {
&self.name[..]
}
#[inline]
pub fn variants(&self) -> &HashMap<String, Variant> {
&self.variants