[Tex/LaTex] Prevent line break before equation environment in enumerated list item

#enumerateequationsline-breaking

I try to accomplish the same thing as in this question: Prevent line break before equation environment in enumerated list item (to have the equation in the same line as "some text"), except that i dont want to use IEEEtran document class and i do want to have the equation number at the end of the line (the right).

\documentclass{report}
\usepackage{mathtools}
\begin{document}
\begin{itemize}
\item some text:
\begin{equation}
x = y = z
\end{equation}
\end{itemize}
\end{document}

enter image description here

EDIT:

Both Andrew's and Bernard's answer works fine in the example, but if you are using the parameter fleqn in \usepackage[fleqn]{mathtools} you will get this:

enter image description here

Best Answer

Here is a quick hack for moving the equation "up" so that it is on the same line as the "some text". This is done with a new environment itemequation that adjusts for the newline. If the text is too long, however, the equation will write over the top of the text. On the other hand, it not clear from the question what should happen in such cases.

Here is the output from the code:

enter image description here

and here is the code:

\documentclass{report}
\usepackage{mathtools}
\newenvironment{itemequation}{\vspace*{-\baselineskip}\equation}{\endequation}
\begin{document}
  \begin{itemize}
    \item some text:
      \begin{itemequation}
      x = y = z
      \end{itemequation}
  \end{itemize}
\end{document}