Skip to content

Commit f9d07d0

Browse files
timfennisclaude
andcommitted
Replace ndc_interpreter::num/compare with ndc_core in rand and sequence
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent d9b4e9e commit f9d07d0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ndc_stdlib/src/rand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn random_n<N: SampleUniform + std::fmt::Display + Copy>(
2020
#[export_module]
2121
mod inner {
2222
use itertools::Itertools;
23-
use ndc_interpreter::num::Number;
23+
use ndc_core::num::Number;
2424

2525
/// Randomly shuffles the elements of the list in place.
2626
pub fn shuffle(list: &mut Vec<ndc_vm::value::Value>) {

ndc_stdlib/src/sequence.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![allow(clippy::ptr_arg)]
22

33
use anyhow::anyhow;
4-
use ndc_interpreter::compare::FallibleOrd;
4+
use ndc_core::compare::FallibleOrd;
55
use ndc_macros::export_module;
66
use ndc_vm::value::Value as VmValue;
77
use ndc_vm::vm::VmCallable;
@@ -55,7 +55,7 @@ fn vm_try_min(mut iter: impl Iterator<Item = VmValue>) -> anyhow::Result<VmValue
5555
mod inner {
5656
use super::{try_sort_by, vm_try_max, vm_try_min};
5757
use itertools::Itertools;
58-
use ndc_interpreter::compare::FallibleOrd;
58+
use ndc_core::compare::FallibleOrd;
5959
use ndc_vm::value::{Object, Value as VmValue};
6060
use ndc_vm::vm::VmCallable;
6161
use std::cmp::Ordering;

0 commit comments

Comments
 (0)