From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58F9A275841; Mon, 19 May 2025 11:41:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747654880; cv=none; b=NqkOjRgyakfV7PsIPwGJelpiv0vyWiYeTKMejSy+td7UyOvSnI2SXdavRGu26LREIkrBzoeu+ekJKZrW3Cnp/0QH3Qp6hPC0mtNdLUgV8bH+BYKeVSYfHvfvGt/IaXGP4kCT305rec/ADqY6vF/q77POBaxfzdsrai+vp5Cunhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747654880; c=relaxed/simple; bh=XKSfFCNj8EnxgCES6aIVmpmQO7wWDa6AFurBdNDUS2E=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=oTMezcfTKmjFaK3KeajKgw/AB7QD+NGbE81prNXB2CDg4yafLF5pmdwwR0Ypl9UQIuNI5twMPbfV3E+cLNxNIqC1IU6N2jUGJABwpSRpyorW7gjfbW6c+jwxbSmJeZO0PPIZpBNGiRYrVhC17F57CkCuytGy6NHDaM1zOSGRDd4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YlCztRWz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YlCztRWz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 044B2C4CEE4; Mon, 19 May 2025 11:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747654879; bh=XKSfFCNj8EnxgCES6aIVmpmQO7wWDa6AFurBdNDUS2E=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=YlCztRWzZg6BgJoATb8JE0jjkPjXxhTtmIk1S9phuKDjFaCn2vVlD5tS5MLbxF621 ZeDp2qAOZzdwpBEfpdSwQA5DM/9AqEgr4y4Z10jDS5+ncfwGaSVrhwls8LFTwlXm5q G7PtEfYI0oOk/cpjSEu7AZQ4xRO/YPEWE+qZ18trp3CUSiw/EOlUap2EgSTY6qAzPJ 470WWKiQTRkTMIwgL3rOG1QaJrR5EaYqlER2FNQFVYN9HaGXXr9ppzkq8kcrBDwQXM BnQ7qGCU19zKv/2AETQNndm7X99Pczx48EMOKPC9tEZYepvcBYl2LT/gz4kEhL2s0w qfSGVY17POZug== Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 19 May 2025 13:41:12 +0200 Message-Id: Cc: "Rafael J. Wysocki" , "Miguel Ojeda" , "Danilo Krummrich" , "Miguel Ojeda" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , , "Vincent Guittot" , "Stephen Boyd" , "Nishanth Menon" , , "Manos Pitsidianakis" , =?utf-8?q?Alex_Benn=C3=A9e?= , "Joakim Bech" , "Rob Herring" , "Yury Norov" , "Burak Emir" , "Rasmus Villemoes" , "Russell King" , , "Michael Turquette" , "Andrew Ballance" , Subject: Re: [PATCH V12 13/15] rust: cpufreq: Extend abstractions for driver registration From: "Benno Lossin" To: "Danilo Krummrich" , "Viresh Kumar" X-Mailer: aerc 0.20.1 References: <68906d67109c3b323b54469fb1ee44e10c1c5b1e.1747634382.git.viresh.kumar@linaro.org> In-Reply-To: On Mon May 19, 2025 at 1:06 PM CEST, Danilo Krummrich wrote: > On Mon, May 19, 2025 at 12:37:18PM +0530, Viresh Kumar wrote: >> +/// fn exit(_policy: &mut cpufreq::Policy, _data: Option) -> Result<()> { > > This can just be `Result`, here and below. Since I saw you mention this multiple times and I agree, I created a clippy issue: https://github.com/rust-lang/rust-clippy/issues/14848 --- Cheers, Benno