Skip to content

Commit 3df137f

Browse files
committed
Get rid of the rest of clippy lints.
1 parent edb244a commit 3df137f

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

plotters-backend/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
features, you need to play with `ensure_prepared` and `present` method. The following figure illustrates how Plotters operates a drawing backend.
2727
2828
- `ensure_prepared` - Called before each time when plotters want to draw. This function should initialize the backend for current frame, if the backend is already prepared
29-
for a frame, this function should simply do nothing.
29+
for a frame, this function should simply do nothing.
3030
- `present` - Called when plotters want to finish current frame drawing
3131
3232

plotters/src/chart/context/cartesian3d/draw_impl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ where
114114
}
115115
Ok(())
116116
}
117+
118+
#[allow(clippy::needless_range_loop)]
117119
#[allow(clippy::type_complexity)]
118120
pub(crate) fn draw_axis(
119121
&mut self,

plotters/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![warn(missing_docs)]
22
#![allow(clippy::type_complexity)]
3+
#![allow(clippy::doc_overindented_list_items)]
34
#![cfg_attr(doc_cfg, feature(doc_cfg))]
45
/*!
56

plotters/src/style/font/mod.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/// The implementation of an actual font implementation
2-
///
3-
/// This exists since for the image rendering task, we want to use
4-
/// the system font. But in wasm application, we want the browser
5-
/// to handle all the font issue.
6-
///
7-
/// Thus we need different mechanism for the font implementation
1+
//! The implementation of an actual font implementation
2+
//!
3+
//! This exists since for the image rendering task, we want to use
4+
//! the system font. But in wasm application, we want the browser
5+
//! to handle all the font issue.
6+
//!
7+
//! Thus we need different mechanism for the font implementation
88
99
#[cfg(all(
1010
not(all(target_arch = "wasm32", not(target_os = "wasi"))),

0 commit comments

Comments
 (0)