diff --git a/martian-derive/src/lib.rs b/martian-derive/src/lib.rs index 06a9450222..03c1f8260c 100644 --- a/martian-derive/src/lib.rs +++ b/martian-derive/src/lib.rs @@ -3,7 +3,6 @@ /// TODO: /// - Handle default values for FileType /// - Repo wide reorganization -extern crate proc_macro; use martian::{utils, MartianBlanketType, MartianPrimaryType, StageKind, Volatile, MARTIAN_TOKENS}; use quote::quote; use std::collections::{HashMap, HashSet}; diff --git a/martian/src/stage.rs b/martian/src/stage.rs index 852b9205ab..81ba68edd3 100644 --- a/martian/src/stage.rs +++ b/martian/src/stage.rs @@ -136,7 +136,7 @@ struct GpuResource { } impl std::fmt::Display for GpuResource { - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "gpu_count{}_mem{}", self.count, self.mem) } }