mirror of https://github.com/zcash/halo2.git
Fix clippy lint in metrics model doctest
This commit is contained in:
parent
3eb6712c6c
commit
9a4f27056c
13
src/model.rs
13
src/model.rs
|
@ -14,14 +14,15 @@ use metrics::{Key, Recorder, Unit};
|
|||
/// ```
|
||||
/// use halo2::model::ModelRecorder;
|
||||
///
|
||||
/// fn main() {
|
||||
/// let recorder = Box::leak(Box::new(ModelRecorder::default()));
|
||||
/// metrics::set_recorder(recorder).unwrap();
|
||||
/// let recorder = Box::leak(Box::new(ModelRecorder::default()));
|
||||
/// metrics::set_recorder(recorder).unwrap();
|
||||
///
|
||||
/// // Create circuit, build and/or verify proof.
|
||||
/// // Create circuit, build and/or verify proof.
|
||||
///
|
||||
/// println!("{}", recorder);
|
||||
/// }
|
||||
/// println!("{}", recorder);
|
||||
/// recorder.clear();
|
||||
///
|
||||
/// // Perform another operation to collect separate metrics.
|
||||
/// ```
|
||||
#[derive(Debug)]
|
||||
pub struct ModelRecorder {
|
||||
|
|
Loading…
Reference in New Issue