mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-03 19:53:40 +00:00
Fix clippy lint in metrics model doctest
This commit is contained in:
parent
3eb6712c6c
commit
9a4f27056c
1 changed files with 7 additions and 6 deletions
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 a new issue