//Place #[allow(dead_code)] above the line that is giving the warning #[allow(dead_code)] struct GivingWarning;