Lint and spelling cleanup.
This commit is contained in:
parent
ae369c0cd8
commit
13cc1b6d0d
@ -144,8 +144,8 @@ pub struct VideoFormat {
|
||||
impl Default for VideoFormat {
|
||||
fn default() -> Self {
|
||||
VideoFormat {
|
||||
short_name: "UNAMED_SHORT".to_string(),
|
||||
long_name: "UNAMED_LONG".to_string(),
|
||||
short_name: "UNNAMED_SHORT".to_string(),
|
||||
long_name: "UNNAMED_LONG".to_string(),
|
||||
height: 0,
|
||||
width: 0,
|
||||
title: None,
|
||||
@ -465,7 +465,6 @@ impl MovieLibrary {
|
||||
let f = File::open(&path).context(format!("open {}", path.display()))?;
|
||||
let r = BufReader::new(f);
|
||||
|
||||
// Read the JSON contents of the file as an instance of `User`.
|
||||
Ok(serde_json::from_reader(r)
|
||||
.context(format!("serde_json::from_reader {}", path.display()))?)
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ use std::time::Duration;
|
||||
|
||||
use human_format::Formatter;
|
||||
use human_format::Scales;
|
||||
use humantime;
|
||||
use log::info;
|
||||
use regex::Regex;
|
||||
use structopt::StructOpt;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user