Fix some (lint) warnings

This commit is contained in:
Paul van Tilburg 2020-02-03 21:15:38 +01:00
parent 4533aee89a
commit 0cfe867c9e
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
2 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ extern crate rocket;
extern crate rocket_contrib;
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate serde_json;
extern crate toml;

View File

@ -71,7 +71,7 @@ impl Note {
.metadata()
.expect(&format!("Cannot get metadata of note file: {}", file_name));
let mut note = Note {
let note = Note {
id: String::from(name),
index: index,
data: data,