From 72eeb65f5470abdbc5d3c43bb8adff1c268e92a5 Mon Sep 17 00:00:00 2001 From: Jesse Wright <63333554+jeswr@users.noreply.github.com> Date: Sat, 24 Feb 2024 13:34:19 +0000 Subject: [PATCH] chore: clean up new_from_terms --- lib/oxrdf/src/triple.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/oxrdf/src/triple.rs b/lib/oxrdf/src/triple.rs index e9fab7b7..184c3edb 100644 --- a/lib/oxrdf/src/triple.rs +++ b/lib/oxrdf/src/triple.rs @@ -764,10 +764,8 @@ impl Triple { predicate: impl Into, object: impl Into, ) -> Result { - let subject: Result = - TryInto::::try_into(subject.into()); - let predicate: Result = - TryInto::::try_into(predicate.into()); + let subject: Result = subject.into().try_into(); + let predicate: Result = predicate.into().try_into(); if let (Ok(subject), Ok(predicate)) = (subject.clone(), predicate.clone()) { Ok(Self { subject,