<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_cargo_fmt():
 """Runs a quick check to see if cargo fmt is installed."""

    try:
        c = subprocess.Popen(
            ["cargo", "fmt", "--", "--help"],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
        )
        return c.wait() == 0
    except OSError:
        return False