Removed more new_ (#1200)
This commit is contained in:
parent
0f633962ff
commit
f73e2006fc
@ -35,7 +35,7 @@ pub fn main() -> Result<(), Error> {
|
|||||||
let observer =
|
let observer =
|
||||||
unsafe { StdMapObserver::from_mut_ptr("signals", SIGNALS.as_mut_ptr(), SIGNALS.len()) };
|
unsafe { StdMapObserver::from_mut_ptr("signals", SIGNALS.as_mut_ptr(), SIGNALS.len()) };
|
||||||
|
|
||||||
let factory = MapEqualityFactory::new_from_observer(&observer);
|
let factory = MapEqualityFactory::with_observer(&observer);
|
||||||
|
|
||||||
// Feedback to rate the interestingness of an input
|
// Feedback to rate the interestingness of an input
|
||||||
let mut feedback = MaxMapFeedback::new(&observer);
|
let mut feedback = MaxMapFeedback::new(&observer);
|
||||||
|
@ -373,7 +373,7 @@ where
|
|||||||
M: MapObserver,
|
M: MapObserver,
|
||||||
{
|
{
|
||||||
/// Creates a new map equality feedback for the given observer
|
/// Creates a new map equality feedback for the given observer
|
||||||
pub fn new_from_observer(obs: &M) -> Self {
|
pub fn with_observer(obs: &M) -> Self {
|
||||||
Self {
|
Self {
|
||||||
obs_name: obs.name().to_string(),
|
obs_name: obs.name().to_string(),
|
||||||
phantom: PhantomData,
|
phantom: PhantomData,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user