Skip to content

Commit

Permalink
Use harp::r_null()
Browse files Browse the repository at this point in the history
Co-authored-by: Davis Vaughan <davis@rstudio.com>
  • Loading branch information
lionel- and DavisVaughan committed Sep 17, 2024
1 parent 95734d7 commit 80f7d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/harp/src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ impl RObject {
pub fn dim(&self) -> harp::Result<Option<Vec<usize>>> {
let dim: RObject = r_dim(self.sexp).into();

if dim.sexp == RObject::null().sexp {
if dim.sexp == harp::r_null() {
return Ok(None);
}

Expand Down

0 comments on commit 80f7d40

Please sign in to comment.