Update lint rules for rust 1.35, remove dead code

parent 7ec2709f
Pipeline #4235 passed with stages
in 22 minutes and 9 seconds
......@@ -88,10 +88,9 @@
//! particular Unicode code point. This will have its own identifying number
//! unique to the font, its ID.
#![allow(unknown_lints)]
#![warn(clippy::all)]
#![allow(
clippy::cyclomatic_complexity,
clippy::cognitive_complexity,
clippy::doc_markdown,
clippy::cast_lossless,
clippy::many_single_char_names
......@@ -986,7 +985,6 @@ impl<'a> PositionedGlyph<'a> {
/// }
/// ```
pub fn draw<O: FnMut(u32, u32, f32)>(&self, o: O) {
use crate::geometry::{Curve, Line};
use stb_truetype::VertexType;
let shape = match self.sg.g.inner {
GlyphInner::Proxy(ref font, id) => {
......
use crate::geometry::*;
use ordered_float::OrderedFloat;
use approx::relative_eq;
use ordered_float::OrderedFloat;
trait SliceUp: Sized {
type PerSlice: Iterator<Item = Self>;
......@@ -97,7 +97,6 @@ impl Iterator for CurveSliceIter {
type Item = CurveIter;
fn next(&mut self) -> Option<Self::Item> {
use crate::geometry::solve_quadratic_real as solve;
use crate::geometry::Cut;
use crate::geometry::RealQuadraticSolution as RQS;
use arrayvec::ArrayVec;
if self.i >= self.planes.count {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment