311 |
impl FocusEventHandler {
|
312 |
#[allow(clippy::new_ret_no_self)] // it does return self, but wrapped
|
313 |
pub(crate) fn new() -> (
|
43 |
impl<S> Body<S> {
|
44 |
#[cfg_attr(feature = "cargo-clippy", allow(new_ret_no_self))]
|
45 |
pub fn new(req: HttpRequest<S>) -> New<S> {
|
23 |
/// Returns a new runtime initialized with default configuration values.
|
24 |
#[allow(clippy::new_ret_no_self)]
|
25 |
pub fn new() -> io::Result<Self> {
|
37 |
/// Panics if underlying Tokio runtime can not be created.
|
38 |
#[allow(clippy::new_ret_no_self)]
|
39 |
pub fn new() -> SystemRunner {
|
78 |
/// Panics if underlying Tokio runtime can not be created.
|
79 |
#[allow(clippy::new_ret_no_self)]
|
80 |
pub fn new() -> SystemRunner {
|
64 |
impl Connector<(), ()> {
|
65 |
#[allow(clippy::new_ret_no_self, clippy::let_unit_value)]
|
66 |
pub fn new() -> Connector<
|
17 |
impl Runtime {
|
18 |
#[allow(clippy::new_ret_no_self)]
|
19 |
/// Returns a new runtime initialized with default configuration values.
|
52 |
#[allow(clippy::new_ret_no_self)]
|
53 |
/// Create new system.
|
60 |
#[allow(clippy::new_ret_no_self)]
|
61 |
/// Create new system using provided tokio Handle.
|
33 |
impl GpuCtx {
|
34 |
#[allow(clippy::new_ret_no_self)]
|
35 |
/// Shortcut to Self::builder().build() with the default settings.
|
135 |
impl MinHeap {
|
136 |
#[allow(clippy::new_ret_no_self)]
|
137 |
pub fn new<T>() -> Heap<T>
|
147 |
impl MaxHeap {
|
148 |
#[allow(clippy::new_ret_no_self)]
|
149 |
pub fn new<T>() -> Heap<T>
|
31 |
impl OneshotController {
|
32 |
#[allow(clippy::new_ret_no_self)]
|
33 |
pub fn new(transaction: vui::WidgetTransaction) -> Box<dyn vui::WidgetController> {
|
397 |
#[allow(clippy::new_ret_no_self)]
|
398 |
pub fn new() -> AptosDataBuilder {
|
467 |
#[allow(clippy::new_ret_no_self)]
|
468 |
pub fn new() -> AptosDataBuilder {
|
23 |
{
|
24 |
#[allow(clippy::new_ret_no_self)]
|
25 |
pub fn new(
|
27 |
{
|
28 |
#[allow(clippy::new_ret_no_self)]
|
29 |
pub fn new(
|
25 |
{
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
pub fn new(
|
23 |
{
|
24 |
#[allow(clippy::new_ret_no_self)]
|
25 |
pub fn new(
|
334 |
/// Panics if both buffers have a length > 1 and are not of equal length.
|
335 |
#[allow(clippy::new_ret_no_self)]
|
336 |
#[inline]
|
46 |
#[allow(clippy::new_ret_no_self)]
|
47 |
pub fn new(color_1: Lab, color_2: Lab, ksub: KSubArgs) -> f32 {
|
40 |
impl ClientBuilder {
|
41 |
#[allow(clippy::new_ret_no_self)]
|
42 |
pub fn new() -> ClientBuilder<
|
71 |
impl Connector<()> {
|
72 |
#[allow(clippy::new_ret_no_self, clippy::let_unit_value)]
|
73 |
pub fn new() -> Connector<
|
108 |
impl ClientBuilder {
|
109 |
#[allow(clippy::new_ret_no_self)]
|
110 |
pub fn new<'a, IntoCowStr>(
|
145 |
impl SharedAccessSignature {
|
146 |
#[allow(clippy::new_ret_no_self)]
|
147 |
pub fn new(key_client: &KeyClient) -> SharedAccessSignatureBuilder<No, No, No, No> {
|
145 |
impl SharedAccessSignature {
|
146 |
#[allow(clippy::new_ret_no_self)]
|
147 |
pub fn new(key_client: &KeyClient) -> SharedAccessSignatureBuilder<No, No, No, No> {
|
143 |
impl SharedAccessSignature {
|
144 |
#[allow(clippy::new_ret_no_self)]
|
145 |
pub fn new<'a>(
|
162 |
/// ```
|
163 |
#[allow(clippy::new_ret_no_self)]
|
164 |
#[inline]
|
18 |
/// Create a new fetcher from some data
|
19 |
#[allow(clippy::new_ret_no_self)]
|
20 |
fn new(client: Client, data: Arc<Data>, target_data: Arc<TargetData>) -> Arc<dyn Fetcher>
|
40 |
#[allow(clippy::new_ret_no_self)]
|
41 |
pub async fn new(connection: Arc<Connection>) -> Result<Self, Error> {
|
22 |
impl Peripheral {
|
23 |
#[allow(clippy::new_ret_no_self)]
|
24 |
pub async fn new() -> Result<Self, Error> {
|
19 |
impl Peripheral {
|
20 |
#[allow(clippy::new_ret_no_self)]
|
21 |
pub async fn new() -> Result<Self, Error> {
|
15 |
#[allow(clippy::new_ret_no_self)]
|
16 |
impl FileError {
|
17 |
impl<S: State> StateMachine<S> {
|
18 |
#[allow(clippy::new_ret_no_self)]
|
19 |
fn new() -> StateMachine<InputElementDiv> {
|
147 |
impl AsyncWriter {
|
148 |
#[allow(clippy::new_ret_no_self)]
|
149 |
#[allow(clippy::needless_lifetimes)]
|
213 |
{
|
214 |
#[allow(clippy::new_ret_no_self)]
|
215 |
/// Initialize a `RedisCacheBuilder`
|
501 |
{
|
502 |
#[allow(clippy::new_ret_no_self)]
|
503 |
/// Initialize an `AsyncRedisCacheBuilder`
|
1967 |
impl ErrorPutToolchainClient {
|
1968 |
#[allow(clippy::new_ret_no_self)]
|
1969 |
pub fn new() -> Arc<dyn dist::Client> {
|
2016 |
impl ErrorAllocJobClient {
|
2017 |
#[allow(clippy::new_ret_no_self)]
|
2018 |
pub fn new() -> Arc<dyn dist::Client> {
|
2071 |
impl ErrorSubmitToolchainClient {
|
2072 |
#[allow(clippy::new_ret_no_self)]
|
2073 |
pub fn new() -> Arc<dyn dist::Client> {
|
2140 |
impl ErrorRunJobClient {
|
2141 |
#[allow(clippy::new_ret_no_self)]
|
2142 |
pub fn new() -> Arc<dyn dist::Client> {
|
2219 |
impl OneshotClient {
|
2220 |
#[allow(clippy::new_ret_no_self)]
|
2221 |
pub fn new(code: i32, stdout: Vec<u8>, stderr: Vec<u8>) -> Arc<dyn dist::Client> {
|
60 |
/// ```
|
61 |
#[allow(clippy::new_ret_no_self)]
|
62 |
pub fn new(block_size: u16) -> Result<Self> {
|
73 |
impl<T> AsyncResult<T> {
|
74 |
#[allow(clippy::new_ret_no_self)]
|
75 |
fn new() -> (AsyncReply<T>, Self) {
|
110 |
impl PutLump {
|
111 |
#[allow(clippy::new_ret_no_self)]
|
112 |
pub fn new(
|
152 |
impl GetLump {
|
153 |
#[allow(clippy::new_ret_no_self)]
|
154 |
pub fn new(
|
183 |
impl HeadLump {
|
184 |
#[allow(clippy::new_ret_no_self)]
|
185 |
pub fn new(
|
215 |
impl DeleteLump {
|
216 |
#[allow(clippy::new_ret_no_self)]
|
217 |
pub fn new(
|
142 |
/// データのサイズが`MAX_SIZE`を超えている場合は、`ErrorKind::InvalidInput`エラーが返される.
|
143 |
#[allow(clippy::new_ret_no_self)]
|
144 |
pub fn new(data: Vec<u8>) -> Result<Self> {
|
226 |
impl<'a, N: 'a + NonVolatileMemory> RestoredEntries<'a, N> {
|
227 |
#[allow(clippy::new_ret_no_self)]
|
228 |
fn new(ring: &'a mut JournalRingBuffer<N>) -> Result<Self> {
|
279 |
impl<'a, N: 'a + NonVolatileMemory> DequeuedEntries<'a, N> {
|
280 |
#[allow(clippy::new_ret_no_self)]
|
281 |
fn new(ring: &'a mut JournalRingBuffer<N>) -> Result<Self> {
|
183 |
// TODO: rename this to `from_path` or `try_new` to satisfy clippy? (breaking API change)
|
184 |
#[allow(clippy::new_ret_no_self)]
|
185 |
pub fn new<P>(path: P) -> Result<Self>
|
109 |
/// ```
|
110 |
#[allow(clippy::new_ret_no_self)]
|
111 |
pub fn new() -> CapstoneBuilder {
|
1088 |
impl __impl_dyn_cast_wrapper<(), (), ()> {
|
1089 |
#[allow(clippy::new_ret_no_self)]
|
1090 |
pub fn new<C, T>() -> __impl_dyn_cast_wrapper<[(); 0], C, T> {
|
78 |
impl Client {
|
79 |
#[allow(clippy::new_ret_no_self)]
|
80 |
pub fn new<'a>(
|
110 |
/// state is loaded if it exists. If not loaded, it is initialized to all zeroes.
|
111 |
#[allow(clippy::new_ret_no_self)]
|
112 |
fn new(
|
54 |
/// Creates a new test transport.
|
55 |
#[allow(clippy::new_ret_no_self)]
|
56 |
pub fn new() -> Arc<TestTransport> {
|
25 |
impl Program {
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
pub fn new() -> Command<'static> {
|
19 |
impl ConecClientCertVerifier {
|
20 |
#[allow(clippy::new_ret_no_self)]
|
21 |
pub fn new(client_ca: Option<Vec<u8>>) -> Arc<dyn ClientCertVerifier> {
|
33 |
impl Peekable2<std::ops::Range<u8>> {
|
34 |
#[allow(clippy::new_ret_no_self)]
|
35 |
pub fn new<I: IntoIterator>(iter: I) -> Peekable2<I::IntoIter> {
|
206 |
impl UnlockedId {
|
207 |
#[allow(clippy::new_ret_no_self)]
|
208 |
pub fn new(url: Option<Url>, sec_key: Vec<u8>) -> Result<Self, IdError> {
|
108 |
impl Local {
|
109 |
#[allow(clippy::new_ret_no_self)]
|
110 |
fn new() -> Result<Self> {
|
88 |
#[allow(clippy::new_ret_no_self)]
|
89 |
fn new(root_dir: &Path) -> Result<Self> {
|
36 |
// expose the factory as a trait object.
|
37 |
#[allow(clippy::new_ret_no_self)]
|
38 |
pub fn new() -> ExecutorFactoryObj {
|
11 |
impl SystemMonitorFactory {
|
12 |
#[allow(clippy::new_ret_no_self)]
|
13 |
pub fn new() -> MonitorFactoryObj {
|
178 |
#[allow(clippy::new_ret_no_self)]
|
179 |
/// Method to initialize the GIC device
|
47 |
// create a new archive trait
|
48 |
#[allow(clippy::new_ret_no_self)]
|
49 |
#[must_use]
|
48 |
#[must_use]
|
49 |
#[allow(clippy::new_ret_no_self)]
|
50 |
pub fn new() -> DeepWalkBuilder {
|
20 |
impl DelayTimes {
|
21 |
#[allow(clippy::new_ret_no_self)] // Maybe turn this off and think of a differnt name other than `new`
|
22 |
pub fn new(beats_per_minute: f64) -> DelayTimesPeriodicUnit {
|
758 |
/// Panics if `block_size` is `0`.
|
759 |
#[allow(clippy::new_ret_no_self)] // This returns a builder.
|
760 |
pub fn new(block_size: usize) -> SignatureBuilder {
|
128 |
impl Weapon {
|
129 |
#[allow(clippy::new_ret_no_self)]
|
130 |
pub fn new(state: &mut dyn State) -> Item {
|
164 |
impl Armor {
|
165 |
#[allow(clippy::new_ret_no_self)]
|
166 |
pub fn new(state: &mut dyn State) -> Item {
|
199 |
impl RawResult {
|
200 |
#[allow(clippy::new_ret_no_self)]
|
201 |
fn new(ptr: *mut PGresult, conn: &RawConnection) -> QueryResult<Self> {
|
26 |
impl PgResult {
|
27 |
#[allow(clippy::new_ret_no_self)]
|
28 |
pub(super) fn new(internal_result: RawResult, conn: &RawConnection) -> QueryResult<Self> {
|
49 |
impl DisrustorBuilder {
|
50 |
#[allow(clippy::new_ret_no_self)]
|
51 |
pub fn new<D: DataProvider<T>, T>(data_provider: Arc<D>) -> WithDataProvider<D, T>
|
14 |
impl PythonInfo {
|
15 |
#[allow(clippy::new_ret_no_self)]
|
16 |
pub fn new(python: &Option<String>) -> Result<Self, Error> {
|
171 |
impl CaChainClientCertVerifier {
|
172 |
#[allow(clippy::new_ret_no_self)]
|
173 |
fn new(
|
217 |
impl SelfSignedCertificateClientCertVerifier {
|
218 |
#[allow(clippy::new_ret_no_self)]
|
219 |
fn new(cert: rustls::Certificate) -> Arc<dyn rustls::server::ClientCertVerifier> {
|
9 |
impl Config {
|
10 |
#[allow(clippy::new_ret_no_self)]
|
11 |
pub fn new(args: &[String]) -> Result<Self, Box<dyn Error>> {
|
74 |
/// directory will be used for documentation.
|
75 |
#[allow(clippy::new_ret_no_self)]
|
76 |
pub fn new(doc_path: &Path) -> Result<Self> {
|
34 |
/// `SparseMap::default()` defers to `SparseMap::new()`.
|
35 |
#[allow(clippy::new_ret_no_self)]
|
36 |
#[must_use = "If the `MapId` is not stored, the `Map` is lost."]
|
151 |
*/
|
152 |
#[allow(clippy::new_ret_no_self)]
|
153 |
pub fn new() -> EmptySlice2DBuilder {
|
9 |
impl ChoiceScreen {
|
10 |
#[allow(clippy::new_ret_no_self)]
|
11 |
pub fn new(menu: ChoiceMenu) -> Result<Box<dyn Screen>> {
|
228 |
impl Builder {
|
229 |
#[allow(clippy::new_ret_no_self)]
|
230 |
pub fn new<T, M, C, S, R, P, F, Pr>() -> GenericBuilder<T, M, C, S, R, P, F, Pr>
|
195 |
/// * kpls_dim: `None`
|
196 |
#[allow(clippy::new_ret_no_self)]
|
197 |
pub fn new() -> MoeParams<F, Xoshiro256Plus> {
|
266 |
/// Creates a new instance of [DefaultHighlighter](DefaultHighlighter)
|
267 |
#[allow(clippy::new_ret_no_self)]
|
268 |
pub fn new() -> DefaultHighlighter {
|
39 |
// TODO: rename it?
|
40 |
#[allow(clippy::new_ret_no_self)]
|
41 |
pub(crate) fn new(shared: Arc<Shared>) -> Schema {
|
54 |
impl BanksClient {
|
55 |
#[allow(clippy::new_ret_no_self)]
|
56 |
pub fn new<C>(
|
47 |
/// Construct a new, `OneShot` `Timer`
|
48 |
#[allow(clippy::new_ret_no_self)]
|
49 |
pub fn new(clock: &Clock, duration: Dur) -> Timer<OneShot, Armed, Clock, Dur> {
|
35 |
impl ASCIIEncoder {
|
36 |
#[allow(clippy::new_ret_no_self)]
|
37 |
pub fn new() -> Box<dyn RawEncoder> {
|
85 |
impl ASCIIDecoder {
|
86 |
#[allow(clippy::new_ret_no_self)]
|
87 |
pub fn new() -> Box<dyn RawDecoder> {
|
30 |
impl ErrorEncoder {
|
31 |
#[allow(clippy::new_ret_no_self)]
|
32 |
pub fn new() -> Box<dyn RawEncoder> {
|
69 |
impl ErrorDecoder {
|
70 |
#[allow(clippy::new_ret_no_self)]
|
71 |
pub fn new() -> Box<dyn RawDecoder> {
|
51 |
impl EUCJPEncoder {
|
52 |
#[allow(clippy::new_ret_no_self)]
|
53 |
pub fn new() -> Box<dyn RawEncoder> {
|
121 |
impl EUCJP0212Decoder {
|
122 |
#[allow(clippy::new_ret_no_self)]
|
123 |
pub fn new() -> Box<dyn RawDecoder> {
|
534 |
impl Windows31JEncoder {
|
535 |
#[allow(clippy::new_ret_no_self)]
|
536 |
pub fn new() -> Box<dyn RawEncoder> {
|
606 |
impl Windows31JDecoder {
|
607 |
#[allow(clippy::new_ret_no_self)]
|
608 |
pub fn new() -> Box<dyn RawDecoder> {
|
919 |
impl ISO2022JPEncoder {
|
920 |
#[allow(clippy::new_ret_no_self)]
|
921 |
pub fn new() -> Box<dyn RawEncoder> {
|
46 |
impl Windows949Encoder {
|
47 |
#[allow(clippy::new_ret_no_self)]
|
48 |
pub fn new() -> Box<dyn RawEncoder> {
|
36 |
impl ROT13Encoder {
|
37 |
#[allow(clippy::new_ret_no_self)]
|
38 |
pub fn new() -> Box<dyn RawEncoder> {
|
71 |
impl ROT13Decoder {
|
72 |
#[allow(clippy::new_ret_no_self)]
|
73 |
pub fn new() -> Box<dyn RawDecoder> {
|
17 |
impl HttpResponse {
|
18 |
#[allow(clippy::new_ret_no_self)]
|
19 |
pub fn new(status: StatusCode) -> HttpResponseBuilder {
|
23 |
impl Plan {
|
24 |
#[allow(clippy::new_ret_no_self)]
|
25 |
pub fn new() -> PlanRc {
|
64 |
impl Connector<(), ()> {
|
65 |
#[allow(clippy::new_ret_no_self, clippy::let_unit_value)]
|
66 |
pub fn new() -> Connector<
|
221 |
fn not_modified(&self) -> Style { self.ui.punctuation }
|
222 |
#[allow(clippy::new_ret_no_self)]
|
223 |
fn new(&self) -> Style { self.ui.git.new }
|
38 |
/// Builds a new [`Task`].
|
39 |
#[allow(clippy::new_ret_no_self)]
|
40 |
pub(super) fn new<T, S>(task: T, close: Sender<S>) -> Task<R, S>
|
14 |
/// Creates a new circuit breaker's default configuration.
|
15 |
#[allow(clippy::new_ret_no_self)]
|
16 |
pub fn new() -> Config<
|
336 |
/// Note that the second future will *not* resolve until the `Client` has been dropped.
|
337 |
#[cfg_attr(feature = "cargo-clippy", allow(new_ret_no_self))]
|
338 |
pub fn new(
|
179 |
#[inline]
|
180 |
#[allow(clippy::new_ret_no_self)]
|
181 |
pub const fn new() -> DirCorpusBuilder<NoItems, NoName> {
|
139 |
#[must_use]
|
140 |
#[allow(clippy::new_ret_no_self)]
|
141 |
pub const fn new() -> HttpMethodsBuilder<NoItems, NoName> {
|
76 |
#[must_use]
|
77 |
#[allow(clippy::new_ret_no_self)]
|
78 |
pub const fn new() -> RangeBuilder<NoItems, NoName> {
|
186 |
#[must_use]
|
187 |
#[allow(clippy::new_ret_no_self)]
|
188 |
pub const fn new() -> WordlistBuilder<NoItems, NoName, NotUnique> {
|
117 |
#[allow(clippy::type_complexity)]
|
118 |
#[allow(clippy::new_ret_no_self)]
|
119 |
#[must_use]
|
328 |
#[allow(clippy::type_complexity)]
|
329 |
#[allow(clippy::new_ret_no_self)]
|
330 |
#[must_use]
|
189 |
impl RPMFileOptions {
|
190 |
#[allow(clippy::new_ret_no_self)]
|
191 |
pub fn new<T: Into<String>>(dest: T) -> RPMFileOptionsBuilder {
|
163 |
/// Create a new stream encoder, in a configuration wrapper, or `None` if one couldn't be allocated.
|
164 |
#[allow(clippy::new_ret_no_self)]
|
165 |
pub fn new() -> Option<FlacEncoderConfig> {
|
74 |
/// has to be provided to unify the interface with `FileResourceStorage`.
|
75 |
#[allow(clippy::new_ret_no_self)]
|
76 |
pub fn new<P: Into<PathBuf>>(path: P) -> Arc<Self> {
|
316 |
/// Creates a new raft for use on the node.
|
317 |
#[allow(clippy::new_ret_no_self)]
|
318 |
pub fn new(c: &Config, store: T, logger: &Logger) -> Result<Self> {
|
409 |
/// The default logger is an `slog` to `log` adapter.
|
410 |
#[allow(clippy::new_ret_no_self)]
|
411 |
#[cfg(feature = "default-logger")]
|
299 |
impl<T: Storage> RawNode<T> {
|
300 |
#[allow(clippy::new_ret_no_self)]
|
301 |
/// Create a new RawNode given some [`Config`].
|
326 |
#[cfg(feature = "default-logger")]
|
327 |
#[allow(clippy::new_ret_no_self)]
|
328 |
pub fn with_default_logger(c: &Config, store: T) -> Result<Self> {
|
109 |
/// This will initialise defaults and, a helm client to perform various helm operations.
|
110 |
#[allow(clippy::new_ret_no_self)]
|
111 |
pub fn new() -> ClusterUninstallerBuilder {
|
94 |
#[inline]
|
95 |
#[allow(clippy::new_ret_no_self)]
|
96 |
pub fn new<P: AsRef<path::Path>>(path: P) -> crate::CacheBuilder {
|
119 |
/// ```
|
120 |
#[allow(clippy::new_ret_no_self)]
|
121 |
pub fn new(input: Arc<str>) -> Box<Self> {
|
52 |
/// ```
|
53 |
#[allow(clippy::new_ret_no_self)]
|
54 |
pub fn new(input: Arc<str>, pos: usize) -> Option<Position> {
|
61 |
/// ```
|
62 |
#[allow(clippy::new_ret_no_self)]
|
63 |
pub fn new(input: Arc<str>, start: usize, end: usize) -> Option<Span> {
|
35 |
#[allow(clippy::new_ret_no_self)]
|
36 |
fn new(&mut self) -> F {
|
31 |
impl CtrlPortDemo {
|
32 |
#[allow(clippy::new_ret_no_self)]
|
33 |
pub fn new() -> Block {
|
51 |
impl ComplexToMag {
|
52 |
#[allow(clippy::new_ret_no_self)]
|
53 |
pub fn new() -> Block {
|
37 |
impl AudioSink {
|
38 |
#[allow(clippy::new_ret_no_self)]
|
39 |
pub fn new(sample_rate: u32, channels: u16) -> Block {
|
33 |
impl AudioSource {
|
34 |
#[allow(clippy::new_ret_no_self)]
|
35 |
pub fn new(sample_rate: u32, channels: u16) -> Block {
|
22 |
impl FileSource {
|
23 |
#[allow(clippy::new_ret_no_self)]
|
24 |
pub fn new(file: &str) -> Block {
|
24 |
impl<T: Send + 'static> NullSink<T> {
|
25 |
#[allow(clippy::new_ret_no_self)]
|
26 |
pub fn new(probe_granularity: u64) -> Block {
|
25 |
impl<T: Send + 'static> NullSource<T> {
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
pub fn new(probe_granularity: u64) -> Block {
|
22 |
impl WasmFreq {
|
23 |
#[allow(clippy::new_ret_no_self)]
|
24 |
pub fn new() -> Block {
|
48 |
impl WasmSdr {
|
49 |
#[allow(clippy::new_ret_no_self)]
|
50 |
pub fn new() -> Block {
|
29 |
impl KamtFactory {
|
30 |
#[allow(clippy::wrong_self_convention, clippy::new_ret_no_self)]
|
31 |
fn new<BS, K, V>(&self, store: BS) -> HKamt<BS, V, K>
|
162 |
#[allow(clippy::new_ret_no_self)]
|
163 |
impl Client<(), Body> {
|
43 |
impl BanksClient {
|
44 |
#[allow(clippy::new_ret_no_self)]
|
45 |
pub fn new<C>(
|
28 |
impl TransactionStatusService {
|
29 |
#[allow(clippy::new_ret_no_self)]
|
30 |
pub fn new(
|
68 |
impl App {
|
69 |
#[allow(clippy::new_ret_no_self, clippy::unnecessary_wraps)]
|
70 |
/// Creates an instance, takes ownership of passed `FileLogger`.
|
45 |
/// ```
|
46 |
#[allow(clippy::new_ret_no_self)]
|
47 |
pub fn new<R, F>(fun: F) -> R
|
431 |
/// Panics if `parent` is invalid.
|
432 |
#[allow(clippy::new_ret_no_self)]
|
433 |
fn new(
|
16 |
/// `Initable::init` failed.
|
17 |
#[allow(clippy::new_ret_no_self)]
|
18 |
#[track_caller]
|
104 |
#[allow(clippy::wrong_self_convention)]
|
105 |
#[allow(clippy::new_ret_no_self)]
|
106 |
#[allow(unused_imports)]
|
9 |
#[doc(alias = "g_simple_proxy_resolver_new")]
|
10 |
#[allow(clippy::new_ret_no_self)]
|
11 |
pub fn new(default_proxy: Option<&str>, ignore_hosts: &[&str]) -> ProxyResolver {
|
158 |
impl TaskSource {
|
159 |
#[allow(clippy::new_ret_no_self)]
|
160 |
// checker-ignore-item
|
1484 |
/// property values of the wrong type are provided.
|
1485 |
#[allow(clippy::new_ret_no_self)]
|
1486 |
#[track_caller]
|
758 |
impl ParamSpecBoolean {
|
759 |
#[allow(clippy::new_ret_no_self)]
|
760 |
#[doc(alias = "g_param_spec_boolean")]
|
857 |
impl ParamSpecUnichar {
|
858 |
#[allow(clippy::new_ret_no_self)]
|
859 |
#[doc(alias = "g_param_spec_unichar")]
|
890 |
impl ParamSpecEnum {
|
891 |
#[allow(clippy::new_ret_no_self)]
|
892 |
#[doc(alias = "g_param_spec_enum")]
|
1007 |
impl ParamSpecFlags {
|
1008 |
#[allow(clippy::new_ret_no_self)]
|
1009 |
#[doc(alias = "g_param_spec_flags")]
|
1168 |
impl ParamSpecString {
|
1169 |
#[allow(clippy::new_ret_no_self)]
|
1170 |
#[doc(alias = "g_param_spec_string")]
|
400 |
impl<T> LocalChannel<T> {
|
401 |
#[allow(clippy::new_ret_no_self)]
|
402 |
fn new(capacity: ChannelCapacity) -> (LocalSender<T>, LocalReceiver<T>) {
|
357 |
/// To finish the process, you must call [`ContextPrototype::finish()`].
|
358 |
#[allow(clippy::new_ret_no_self)]
|
359 |
pub fn new<'a, F>(
|
79 |
// transparent is [`None`] if window is raw.
|
80 |
#[allow(clippy::new_ret_no_self)]
|
81 |
pub fn new<'a>(
|
164 |
#[allow(clippy::new_ret_no_self)]
|
165 |
/// Create a new `Shader` given source files, constants and a name.
|
74 |
/// distinct equivalence class, with initial weight.
|
75 |
#[allow(clippy::new_ret_no_self)] // It actually does return a type that "contains" `Self`.
|
76 |
fn new() -> R
|
26 |
#[allow(unused_imports)]
|
27 |
#[allow(clippy::new_ret_no_self)]
|
28 |
mod auto;
|
414 |
#[doc(alias = "gst_event_new_flush_start")]
|
415 |
#[allow(clippy::new_ret_no_self)]
|
416 |
pub fn new() -> Event {
|
429 |
#[doc(alias = "gst_event_new_flush_stop")]
|
430 |
#[allow(clippy::new_ret_no_self)]
|
431 |
pub fn new(reset_time: bool) -> Event {
|
458 |
#[doc(alias = "gst_event_new_stream_start")]
|
459 |
#[allow(clippy::new_ret_no_self)]
|
460 |
pub fn new(stream_id: &str) -> Event {
|
525 |
#[doc(alias = "gst_event_new_caps")]
|
526 |
#[allow(clippy::new_ret_no_self)]
|
527 |
pub fn new(caps: &crate::Caps) -> Event {
|
559 |
#[doc(alias = "gst_event_new_segment")]
|
560 |
#[allow(clippy::new_ret_no_self)]
|
561 |
pub fn new<F: FormattedValueIntrinsic>(segment: &crate::FormattedSegment<F>) -> Event {
|
290 |
#[doc(alias = "gst_message_new_eos")]
|
291 |
#[allow(clippy::new_ret_no_self)]
|
292 |
pub fn new() -> Message {
|
305 |
#[doc(alias = "gst_message_new_error")]
|
306 |
#[allow(clippy::new_ret_no_self)]
|
307 |
pub fn new<T: MessageErrorDomain>(error: T, message: &str) -> Message {
|
374 |
#[doc(alias = "gst_message_new_warning")]
|
375 |
#[allow(clippy::new_ret_no_self)]
|
376 |
pub fn new<T: MessageErrorDomain>(error: T, message: &str) -> Message {
|
444 |
#[doc(alias = "gst_message_new_info")]
|
445 |
#[allow(clippy::new_ret_no_self)]
|
446 |
pub fn new<T: MessageErrorDomain>(error: T, message: &str) -> Message {
|
514 |
#[doc(alias = "gst_message_new_tag")]
|
515 |
#[allow(clippy::new_ret_no_self)]
|
516 |
pub fn new(tags: &TagList) -> Message {
|
148 |
#[doc(alias = "gst_navigation_message_new_event")]
|
149 |
#[allow(clippy::new_ret_no_self)]
|
150 |
pub fn new(event: gst::Event) -> gst::Message {
|
33 |
impl ParamSpecExpression {
|
34 |
#[allow(clippy::new_ret_no_self)]
|
35 |
#[doc(alias = "gtk_param_spec_expression")]
|
393 |
/// root widget.
|
394 |
#[allow(clippy::new_ret_no_self)]
|
395 |
pub fn new<D, W>(new_data: D, new_root_widget: W) -> (Self, Id)
|
33 |
/// Create a new `response::Reader` that consumes a response body from a socket
|
34 |
#[allow(clippy::new_ret_no_self)]
|
35 |
pub(crate) fn new(readable: &mut dyn Read) -> Result<Self, Error> {
|
48 |
/// Initialize new Cache actor with default [`hitbox_redis::RedisBackend`].
|
49 |
#[allow(clippy::new_ret_no_self)]
|
50 |
pub async fn new() -> Result<CacheActor<RedisBackend>, CacheError> {
|
348 |
/// Sign some content
|
349 |
#[allow(clippy::new_ret_no_self)]
|
350 |
async fn sign(
|
78 |
/// ```
|
79 |
#[allow(clippy::new_ret_no_self)]
|
80 |
pub fn new(row: u8, common: u8) -> Result<Self, ValidationError> {
|
37 |
impl IfAddrs {
|
38 |
#[allow(unsafe_code, clippy::new_ret_no_self)]
|
39 |
pub fn new() -> io::Result<Self> {
|
32 |
impl SockAddr {
|
33 |
#[allow(clippy::new_ret_no_self)]
|
34 |
fn new(sockaddr: *const sockaddr) -> Option<Self> {
|
103 |
#[deprecated(since = "0.10.0", note = "Use `ui.image_button_config(...)` instead")]
|
104 |
#[allow(clippy::new_ret_no_self)]
|
105 |
pub fn new(texture_id: TextureId, size: impl Into<MintVec2>) -> ImageButtonDeprecated {
|
33 |
/// ```
|
34 |
#[allow(clippy::new_ret_no_self)]
|
35 |
pub fn new<I: Into<IpAddr>>(network_address: I, netmask: u8) -> Result<Self, IpNetworkError> {
|
45 |
/// ```
|
46 |
#[allow(clippy::new_ret_no_self)]
|
47 |
pub fn new(network_address: Ipv4Addr, netmask: u8) -> Result<Self, IpNetworkError> {
|
57 |
/// ```
|
58 |
#[allow(clippy::new_ret_no_self)]
|
59 |
pub fn new(network_address: Ipv6Addr, netmask: u8) -> Result<Self, IpNetworkError> {
|
30 |
impl Client {
|
31 |
#[allow(clippy::new_ret_no_self)]
|
32 |
pub fn new(peer_id: u64, shared: Shared) -> Result<(Self, Vec<ServerSessionResult>)> {
|
50 |
impl Handler {
|
51 |
#[allow(clippy::new_ret_no_self)]
|
52 |
pub fn new(peer_id: u64, shared: Shared) -> Result<Self> {
|
24 |
impl<'a, 'b, 'c, 'd> JobBuilder<'a, 'b, 'c, 'd> {
|
25 |
#[allow(clippy::new_ret_no_self)]
|
26 |
pub(crate) fn new<T>(job: &'a T, jenkins_client: &'b Jenkins) -> Result<Self>
|
297 |
impl Client {
|
298 |
#[allow(clippy::new_ret_no_self)]
|
299 |
pub fn new() -> ClientBuilder {
|
1495 |
impl<'a, T, K> QueryTrail<'a, T, K> {
|
1496 |
#[allow(clippy::new_ret_no_self)]
|
1497 |
#[doc(hidden)]
|
265 |
impl VmAssembly {
|
266 |
#[allow(clippy::new_ret_no_self)]
|
267 |
pub fn new(bytes: Vec<u8>) -> SimpleResult<Self> {
|
123 |
impl Vm {
|
124 |
#[allow(clippy::new_ret_no_self)]
|
125 |
#[inline]
|
136 |
impl<'a> Lexer<'a> {
|
137 |
#[allow(clippy::new_ret_no_self)]
|
138 |
fn new(s: &str) -> impl Iterator<Item = Spanned<TokenRes>> + '_ {
|
33 |
impl Database {
|
34 |
#[allow(clippy::new_ret_no_self)]
|
35 |
pub(super) fn new(cipher: StreamCipher, xml: Xml, bin: Binaries) -> KdbxResult<Database> {
|
32 |
///
|
33 |
#[allow(clippy::new_ret_no_self)]
|
34 |
pub fn new<P, F>(password: Option<P>, key_file: Option<F>) -> Result<Self, io::Error>
|
57 |
impl dyn Authenticator {
|
58 |
#[allow(clippy::new_ret_no_self)]
|
59 |
pub fn new(cred: Credential) -> Box<dyn Authenticator + Send> {
|
185 |
impl SimpleQueryRow {
|
186 |
#[allow(clippy::new_ret_no_self)]
|
187 |
pub(crate) fn new(columns: Rc<[String]>, body: DataRowBody) -> Result<SimpleQueryRow, Error> {
|
40 |
/// ```
|
41 |
#[allow(clippy::new_ret_no_self)]
|
42 |
pub fn new() -> Result<Self> {
|
63 |
/// ```
|
64 |
#[allow(clippy::new_ret_no_self)]
|
65 |
pub fn new_with_path<P>(kvm_path: P) -> Result<Self>
|
233 |
/// Construct a new SqlPool instance.
|
234 |
#[allow(clippy::new_ret_no_self)]
|
235 |
pub fn new(
|
18 |
/// Create a new control instance with the specified filter.
|
19 |
#[allow(clippy::new_ret_no_self)]
|
20 |
pub fn new(filter: S) -> RawControl {
|
22 |
/// Create a new control instance with the specified filter.
|
23 |
#[allow(clippy::new_ret_no_self)]
|
24 |
pub fn new(filter: S) -> RawControl {
|
42 |
/// Create a new control instance with the specified list of attribute names/OIDs.
|
43 |
#[allow(clippy::new_ret_no_self)]
|
44 |
pub fn new(attrs: Vec<S>) -> RawControl {
|
67 |
/// Create a new control instance with the specified list of attribute names/OIDs.
|
68 |
#[allow(clippy::new_ret_no_self)]
|
69 |
pub fn new(attrs: Vec<S>) -> RawControl {
|
44 |
// This is close enough to `Self`.
|
45 |
#[allow(clippy::new_ret_no_self)]
|
46 |
fn new() -> Box<dyn AudioHandler>
|
36 |
///
|
37 |
#[allow(clippy::new_ret_no_self)]
|
38 |
pub fn new(program: &Program, symbol_table: SymbolTable) -> Result<(), TypeInferenceError> {
|
91 |
/// Creates a new builder for specifying options for opening an MDBX environment.
|
92 |
#[allow(clippy::new_ret_no_self)]
|
93 |
pub fn new() -> DatabaseBuilder<E> {
|
62 |
/// Creates a new Argon2i instance
|
63 |
#[allow(clippy::new_ret_no_self)]
|
64 |
pub fn new(passes: u32, lanes: u32, kib: u32) -> Primitive {
|
61 |
/// Construct a new `Bcrypt` parameter set.
|
62 |
#[allow(clippy::new_ret_no_self)]
|
63 |
pub fn new(cost: u32) -> Primitive {
|
28 |
/// Create a new PBKDF2 instance.
|
29 |
#[allow(clippy::new_ret_no_self)]
|
30 |
pub fn new(iterations: u32, algorithm: &'static pbkdf2::Algorithm) -> Primitive {
|
77 |
/// Create a new scrypt instance.
|
78 |
#[allow(clippy::new_ret_no_self)]
|
79 |
pub fn new(log_n: u8, r: u32, p: u32) -> Primitive {
|
25 |
mod gaussian_mixture;
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
mod k_means;
|
164 |
// Violates the convention that new should return a value of type `Self`
|
165 |
#[allow(clippy::new_ret_no_self)]
|
166 |
pub fn params() -> DecisionTreeParams<F, L> {
|
76 |
impl RomFsDirEntCtx {
|
77 |
#[allow(clippy::new_ret_no_self)]
|
78 |
fn new(parent: Weak<RefCell<RomFsDirEntCtx>>, path: PathBuf) -> Rc<RefCell<RomFsDirEntCtx>> {
|
594 |
impl Keys {
|
595 |
#[allow(clippy::new_ret_no_self)]
|
596 |
fn new(
|
64 |
/// Creates a new builder for specifying options for opening an LMDB environment.
|
65 |
#[allow(clippy::new_ret_no_self)]
|
66 |
pub fn new() -> EnvironmentBuilder {
|
92 |
/// extension pipeline
|
93 |
#[allow(clippy::new_ret_no_self)]
|
94 |
fn new() -> Box<dyn RouterExtension<N>>
|
112 |
/// extension pipeline
|
113 |
#[allow(clippy::new_ret_no_self)]
|
114 |
fn new() -> Box<dyn ChannelExtension<N>>
|
121 |
/// Return a new converter builder.
|
122 |
#[allow(clippy::new_ret_no_self)]
|
123 |
#[must_use]
|
297 |
impl<W: Clone> Server<W> {
|
298 |
#[allow(clippy::new_ret_no_self)]
|
299 |
pub fn new() -> ServerBuilder<W> {
|
205 |
impl SimpleQueryRow {
|
206 |
#[allow(clippy::new_ret_no_self)]
|
207 |
pub(crate) fn new(
|
1957 |
#[allow(clippy::new_ret_no_self)]
|
1958 |
#[inline(always)]
|
45 |
/// Creates a new builder for specifying options for opening an LMDB environment.
|
46 |
#[allow(clippy::new_ret_no_self)]
|
47 |
pub fn new() -> EnvironmentBuilder {
|
18 |
impl PeekableN<core::ops::Range<u8>> {
|
19 |
#[allow(clippy::new_ret_no_self)]
|
20 |
pub(crate) fn new<I: IntoIterator>(iter: I) -> PeekableN<I::IntoIter> {
|
125 |
impl Context {
|
126 |
#[allow(clippy::new_ret_no_self)]
|
127 |
pub fn new(options: ContextOptions) -> Result<ContextRef> {
|
43 |
impl<'a> NetatmoClient {
|
44 |
#[allow(clippy::new_ret_no_self)]
|
45 |
pub fn new(client_credentials: &'a ClientCredentials) -> UnauthenticatedClient<'a> {
|
25 |
impl<A> Connector<A> {
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
/// Create new amqp connector
|
28 |
{
|
29 |
#[allow(clippy::new_ret_no_self)]
|
30 |
/// Create new mqtt connector
|
25 |
{
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
/// Create new mqtt connector
|
19 |
{
|
20 |
#[allow(clippy::new_ret_no_self)]
|
21 |
/// Create new redis connector
|
49 |
#[allow(clippy::new_ret_no_self)]
|
50 |
/// Create new system.
|
88 |
{
|
89 |
#[allow(clippy::new_ret_no_self)]
|
90 |
pub fn new<H, R>(
|
1505 |
impl BlobMetaChunk {
|
1506 |
#[allow(clippy::new_ret_no_self)]
|
1507 |
pub(crate) fn new(
|
21 |
//noinspection ALL
|
22 |
#[allow(dead_code, clippy::new_ret_no_self)]
|
23 |
pub fn new<S: Into<Option<String>>>(s: S) -> ProtocolPayload {
|
47 |
//noinspection ALL
|
48 |
#[allow(dead_code, clippy::new_ret_no_self)]
|
49 |
pub fn new<T: Into<Vec<u8>>>(request_id: u64, data: T) -> ProtocolPayload {
|
77 |
//noinspection ALL
|
78 |
#[allow(dead_code, clippy::new_ret_no_self)]
|
79 |
pub fn new(request_id: u64, index: u64, limit: u64) -> ProtocolPayload {
|
22 |
//noinspection RsExternalLinter
|
23 |
#[allow(dead_code, clippy::new_ret_no_self)]
|
24 |
pub fn new<S: Into<String>>(s: S) -> ProtocolPayload {
|
47 |
//noinspection RsExternalLinter
|
48 |
#[allow(dead_code, clippy::new_ret_no_self)]
|
49 |
pub fn new<S: Into<Status>>(request_id: u64, status: S, index: u64) -> ProtocolPayload {
|
99 |
//noinspection RsExternalLinter
|
100 |
#[allow(dead_code, clippy::new_ret_no_self)]
|
101 |
pub fn new<T: Into<Vec<StreamMessage>>>(request_id: u64, messages: T) -> ProtocolPayload {
|
28 |
///
|
29 |
#[allow(clippy::new_ret_no_self)]
|
30 |
pub fn new() -> RouteBuilder<'static> {
|
254 |
impl NodeWaker {
|
255 |
#[allow(clippy::new_ret_no_self)]
|
256 |
fn new(_task_id: TaskId) -> Waker {
|
208 |
/// Create a new [`OpaBuilder`] instance.
|
209 |
#[allow(clippy::new_ret_no_self)]
|
210 |
#[must_use]
|
7 |
#[allow(clippy::new_ret_no_self)]
|
8 |
pub trait TileConverterTrait {
|
17 |
#[allow(clippy::new_ret_no_self)]
|
18 |
pub trait TileReaderTrait: Debug + Send + Sync {
|
49 |
#[allow(clippy::new_ret_no_self)]
|
50 |
fn new(&self) -> TokenStream {
|
347 |
/// Returns `None` if a game with this name already exists
|
348 |
#[allow(clippy::new_ret_no_self)]
|
349 |
#[throws(MgmtError)]
|
161 |
#[allow(clippy::new_ret_no_self)]
|
162 |
impl<T> OldNew<T> {
|
186 |
/// Panics if the name is not a valid IRI fragment.
|
187 |
#[allow(clippy::new_ret_no_self)]
|
188 |
pub fn new<T: From<IRI>>(&self, name: &str) -> T {
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
#[doc(alias = "pango_cairo_font_map_new")]
|
85 |
/// Create a new `Capture`.
|
86 |
#[allow(clippy::new_ret_no_self)]
|
87 |
pub fn new(rdr: R) -> Result<Capture<R>> {
|
36 |
#[doc(hidden)]
|
37 |
#[allow(clippy::new_ret_no_self)]
|
38 |
pub fn new() -> PdfRenderConfig {
|
113 |
/// ```
|
114 |
#[allow(clippy::new_ret_no_self)]
|
115 |
pub fn new(input: &'i str) -> Box<Self> {
|
51 |
/// ```
|
52 |
#[allow(clippy::new_ret_no_self)]
|
53 |
pub fn new(input: &str, pos: usize) -> Option<Position> {
|
55 |
/// ```
|
56 |
#[allow(clippy::new_ret_no_self)]
|
57 |
pub fn new(input: &str, start: usize, end: usize) -> Option<Span> {
|
167 |
/// Make new basket for this attribute.
|
168 |
#[allow(clippy::new_ret_no_self)]
|
169 |
pub fn new(&mut self, perf: &mut Perf, bk: Bk, loc: Loc) {
|
140 |
pub trait SphereGeometry: Class<PxSphereGeometry> + Geometry {
|
141 |
#[allow(clippy::new_ret_no_self)]
|
142 |
fn new(radius: f32) -> PxSphereGeometry {
|
156 |
pub trait PlaneGeometry: Class<PxPlaneGeometry> + Geometry {
|
157 |
#[allow(clippy::new_ret_no_self)]
|
158 |
fn new() -> PxPlaneGeometry {
|
172 |
pub trait CapsuleGeometry: Class<PxCapsuleGeometry> + Geometry {
|
173 |
#[allow(clippy::new_ret_no_self)]
|
174 |
fn new(radius: f32, half_height: f32) -> PxCapsuleGeometry {
|
188 |
pub trait BoxGeometry: Class<PxBoxGeometry> + Geometry {
|
189 |
#[allow(clippy::new_ret_no_self)]
|
190 |
fn new(half_x: f32, half_y: f32, half_z: f32) -> PxBoxGeometry {
|
204 |
pub trait ConvexMeshGeometry: Class<PxConvexMeshGeometry> + Geometry {
|
205 |
#[allow(clippy::new_ret_no_self)]
|
206 |
fn new(
|
50 |
#[inline]
|
51 |
#[cfg_attr(feature = "cargo-clippy", allow(new_ret_no_self))]
|
52 |
pub fn new<S1, S2>(
|
47 |
pub trait Permit<T> {
|
48 |
#[allow(clippy::new_ret_no_self)]
|
49 |
fn new(&mut self, value: T) -> Option<Protect<T>>;
|
50 |
#[must_use]
|
51 |
#[allow(clippy::new_ret_no_self)] // builder pattern should be detected
|
52 |
pub fn new() -> HyperBuilder {
|
25 |
impl TokenAuthentication {
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
#[cfg_attr(feature = "telemetry", tracing::instrument(skip_all))]
|
76 |
/// Parses Qt documentation of module `qt_crate_name` located at `docs_path`.
|
77 |
#[allow(clippy::new_ret_no_self)]
|
78 |
pub fn new(qt_crate_name: &str, docs_path: &Path) -> Result<DocData> {
|
37 |
#[allow(clippy::new_ret_no_self)]
|
38 |
fn new(headers_dir: &PathBuf) -> Result<HeaderNameMap> {
|
316 |
/// Creates a new raft for use on the node.
|
317 |
#[allow(clippy::new_ret_no_self)]
|
318 |
pub fn new(c: &Config, store: T, logger: &Logger) -> Result<Self> {
|
409 |
/// The default logger is an `slog` to `log` adapter.
|
410 |
#[allow(clippy::new_ret_no_self)]
|
411 |
#[cfg(feature = "default-logger")]
|
299 |
impl<T: Storage> RawNode<T> {
|
300 |
#[allow(clippy::new_ret_no_self)]
|
301 |
/// Create a new RawNode given some [`Config`].
|
326 |
#[cfg(feature = "default-logger")]
|
327 |
#[allow(clippy::new_ret_no_self)]
|
328 |
pub fn with_default_logger(c: &Config, store: T) -> Result<Self> {
|
49 |
/// ノード名を変更して、新規ノード追加扱いにした方が安全である.
|
50 |
#[allow(clippy::new_ret_no_self)]
|
51 |
pub fn new(
|
24 |
/// Create a new instance.
|
25 |
#[allow(clippy::new_ret_no_self)]
|
26 |
pub async fn open(
|
56 |
}
|
57 |
#[allow(clippy::new_ret_no_self)]
|
58 |
unsafe fn new(mem: *mut u8, auto_reset: bool) -> Result<(Box<dyn EventImpl>, usize)> {
|
43 |
#[allow(clippy::new_ret_no_self)]
|
44 |
unsafe fn new(mem: *mut u8, auto_reset: bool) -> Result<(Box<dyn EventImpl>, usize)> {
|
32 |
#[allow(clippy::new_ret_no_self)]
|
33 |
unsafe fn new(mem: *mut u8, auto_reset: bool) -> Result<(Box<dyn EventImpl>, usize)> {
|
105 |
#[allow(clippy::new_ret_no_self)]
|
106 |
unsafe fn new(mem: *mut u8, data: *mut u8) -> Result<(Box<dyn LockImpl>, usize)> {
|
214 |
#[allow(clippy::new_ret_no_self)]
|
215 |
unsafe fn new(mem: *mut u8, data: *mut u8) -> Result<(Box<dyn LockImpl>, usize)> {
|
30 |
#[allow(clippy::new_ret_no_self)]
|
31 |
unsafe fn new(mem: *mut u8, data: *mut u8) -> Result<(Box<dyn LockImpl>, usize)> {
|
8 |
impl Build {
|
9 |
#[allow(clippy::new_ret_no_self)]
|
10 |
pub fn new() -> cc_impl::Build {
|
96 |
/// See [`NodeBuilder::new()`] for documentation.
|
97 |
#[allow(clippy::new_ret_no_self)]
|
98 |
pub fn new(context: &Context, node_name: &str) -> Result<Node, RclrsError> {
|
85 |
impl<P, B: Backend> Input<P, B> {
|
86 |
#[allow(clippy::new_ret_no_self)]
|
87 |
/// Creates a new `Input`. This won't do anything until it is [run](Input::run).
|
64 |
impl Connector<(), ()> {
|
65 |
#[allow(clippy::new_ret_no_self, clippy::let_unit_value)]
|
66 |
pub fn new() -> Connector<
|
17 |
impl Runtime {
|
18 |
#[allow(clippy::new_ret_no_self)]
|
19 |
/// Returns a new runtime initialized with default configuration values.
|
52 |
#[allow(clippy::new_ret_no_self)]
|
53 |
/// Create new system.
|
60 |
#[allow(clippy::new_ret_no_self)]
|
61 |
/// Create new system using provided tokio Handle.
|
59 |
impl<T, const N: usize> RingBuffer<T, N> {
|
60 |
#[allow(clippy::new_ret_no_self)]
|
61 |
#[deprecated(since = "0.1.8", note = "please use `init()` instead.")]
|
39 |
impl Workspace {
|
40 |
#[allow(clippy::new_ret_no_self)]
|
41 |
pub fn new(path: PathBuf) -> Result<Workspace> {
|
61 |
/// Return a new Rkv environment that supports up to `DEFAULT_MAX_DBS` open databases.
|
62 |
#[allow(clippy::new_ret_no_self)]
|
63 |
pub fn new<B>(path: &Path) -> Result<Rkv<E>, StoreError>
|
38 |
{
|
39 |
#[allow(clippy::new_ret_no_self)]
|
40 |
pub fn new(k: &K) -> Result<Key<K>, DataError> {
|
157 |
impl SelfSignedCertificateClientCertVerifier {
|
158 |
#[allow(clippy::new_ret_no_self)]
|
159 |
fn new(cert: rustls::Certificate) -> Arc<dyn rustls::server::ClientCertVerifier> {
|
173 |
impl RPMFileOptions {
|
174 |
#[allow(clippy::new_ret_no_self)]
|
175 |
pub fn new<T: Into<String>>(dest: T) -> RPMFileOptionsBuilder {
|
179 |
/// Create module from JS source
|
180 |
#[allow(clippy::new_ret_no_self)]
|
181 |
pub fn new<N, S>(ctx: Ctx<'js>, name: N, source: S) -> Result<Module<'js, Loaded<Script>>>
|
202 |
/// Create native JS module using [`ModuleDef`]
|
203 |
#[allow(clippy::new_ret_no_self)]
|
204 |
pub fn new_def<D, N>(ctx: Ctx<'js>, name: N) -> Result<Module<'js, Loaded<Native>>>
|
228 |
/// The `load` function should not crash. But it can throw exception and return null pointer in that case.
|
229 |
#[allow(clippy::new_ret_no_self)]
|
230 |
pub unsafe fn new_raw<N>(
|
48 |
/// Note: The "client_secret" for non-confidential clients (Installed APPs) is an empty string.
|
49 |
#[allow(clippy::new_ret_no_self)]
|
50 |
pub fn new<S: Into<String>>(
|
43 |
/// Creates a new Authenticator
|
44 |
#[allow(clippy::new_ret_no_self)]
|
45 |
pub fn new<S: Into<String>>(
|
43 |
/// Note: The "client_secret" for non-confidential clients (Installed APPs) is an empty string.
|
44 |
#[allow(clippy::new_ret_no_self)]
|
45 |
pub fn new<S: Into<String>>(
|
34 |
#[allow(clippy::new_without_default, clippy::new_ret_no_self)]
|
35 |
impl<TCtx, TMeta> Router<TCtx, TMeta>
|
116 |
/// ```
|
117 |
#[allow(clippy::new_ret_no_self)]
|
118 |
#[must_use]
|
150 |
/// ```
|
151 |
#[allow(clippy::new_ret_no_self)]
|
152 |
#[must_use]
|
23 |
#[cfg(feature = "rand")]
|
24 |
#[allow(clippy::new_ret_no_self)]
|
25 |
pub fn new() -> OwnedClientSecret {
|
36 |
#[cfg(feature = "rand")]
|
37 |
#[allow(clippy::new_ret_no_self)]
|
38 |
pub fn new() -> OwnedDeviceId {
|
49 |
#[cfg(feature = "rand")]
|
50 |
#[allow(clippy::new_ret_no_self)]
|
51 |
pub fn new(server_name: &ServerName) -> OwnedEventId {
|
30 |
#[cfg(feature = "rand")]
|
31 |
#[allow(clippy::new_ret_no_self)]
|
32 |
pub fn new(server_name: &ServerName) -> OwnedRoomId {
|
20 |
#[cfg(feature = "rand")]
|
21 |
#[allow(clippy::new_ret_no_self)]
|
22 |
pub fn new() -> OwnedTransactionId {
|
26 |
#[cfg(feature = "rand")]
|
27 |
#[allow(clippy::new_ret_no_self)]
|
28 |
pub fn new(server_name: &ServerName) -> OwnedUserId {
|
22 |
#[cfg(feature = "rand")]
|
23 |
#[allow(clippy::new_ret_no_self)]
|
24 |
pub fn new() -> OwnedVoipId {
|
75 |
#[allow(clippy::new_ret_no_self)]
|
76 |
pub fn new(
|
50 |
/// Create a new ``Pin`` with an unknown function and PUD settings.
|
51 |
#[allow(clippy::new_ret_no_self)]
|
52 |
pub fn new(num: u32) -> Pin<function::Unknown, pud::Unknown> {
|
709 |
impl<T: PyValue> PyRef<T> {
|
710 |
#[allow(clippy::new_ret_no_self)]
|
711 |
pub fn new_ref(payload: T, typ: PyClassRef, dict: Option<PyDictRef>) -> Self {
|
1159 |
{
|
1160 |
#[allow(clippy::new_ret_no_self)]
|
1161 |
pub fn new(payload: T, typ: PyClassRef, dict: Option<PyDictRef>) -> PyObjectRef {
|
786 |
#[pyslot]
|
787 |
#[allow(clippy::new_ret_no_self)]
|
788 |
fn tp_new(
|
129 |
#[allow(clippy::new_ret_no_self)]
|
130 |
fn new(array: &[T], name: Option<String>) -> Series<T, usize> {
|
69 |
/// Create a new JSContext. use JS_NewContext internally.
|
70 |
#[allow(clippy::new_ret_no_self)]
|
71 |
pub fn new(rt: &mut JSRuntime) -> OwnedJSContext {
|
42 |
/// use JS_NewJSRuntime internally.
|
43 |
#[allow(clippy::new_ret_no_self)]
|
44 |
pub fn new() -> OwnedJSRuntime {
|
303 |
/// V8::initialize() must have run prior to this.
|
304 |
#[allow(clippy::new_ret_no_self)]
|
305 |
pub fn new(params: CreateParams) -> OwnedIsolate {
|
118 |
impl<'s, P: param::NewContextScope<'s>> ContextScope<'s, P> {
|
119 |
#[allow(clippy::new_ret_no_self)]
|
120 |
pub fn new(param: &'s mut P, context: Local<Context>) -> P::NewScope {
|
153 |
impl<'s> HandleScope<'s> {
|
154 |
#[allow(clippy::new_ret_no_self)]
|
155 |
pub fn new<P: param::NewHandleScope<'s>>(param: &'s mut P) -> P::NewScope {
|
301 |
impl<'s, 'e: 's> EscapableHandleScope<'s, 'e> {
|
302 |
#[allow(clippy::new_ret_no_self)]
|
303 |
pub fn new<P: param::NewEscapableHandleScope<'s, 'e>>(
|
336 |
impl<'s, P: param::NewTryCatch<'s>> TryCatch<'s, P> {
|
337 |
#[allow(clippy::new_ret_no_self)]
|
338 |
pub fn new(param: &'s mut P) -> P::NewScope {
|
515 |
impl<'s> CallbackScope<'s> {
|
516 |
#[allow(clippy::new_ret_no_self)]
|
517 |
pub unsafe fn new<P: param::NewCallbackScope<'s>>(param: P) -> P::NewScope {
|
142 |
/// V8::initialize() must have run prior to this.
|
143 |
#[allow(clippy::new_ret_no_self)]
|
144 |
pub fn new(params: CreateParams) -> OwnedIsolate {
|
73 |
/// JavaScript try/catch blocks.
|
74 |
#[allow(clippy::new_ret_no_self)]
|
75 |
pub fn new(scope: &mut impl InIsolate) -> TryCatchScope<'tc> {
|
169 |
/// V8::initialize() must have run prior to this.
|
170 |
#[allow(clippy::new_ret_no_self)]
|
171 |
pub fn new(params: UniqueRef<CreateParams>) -> OwnedIsolate {
|
73 |
/// JavaScript try/catch blocks.
|
74 |
#[allow(clippy::new_ret_no_self)]
|
75 |
pub fn new(scope: &mut impl InIsolate) -> TryCatchScope<'tc> {
|
17 |
#[allow(clippy::new_ret_no_self)]
|
18 |
pub fn new(&self, key: [u8; 16]) -> Box<dyn GHash> {
|
25 |
#[cfg(not(target_os = "solana"))]
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
fn keygen<T: RngCore + CryptoRng>(rng: &mut T) -> AeKey {
|
183 |
#[cfg(not(target_os = "solana"))]
|
184 |
#[allow(clippy::new_ret_no_self)]
|
185 |
pub fn new_rand() -> Self {
|
35 |
#[cfg(not(target_os = "solana"))]
|
36 |
#[allow(clippy::new_ret_no_self)]
|
37 |
pub fn new<T: Into<Scalar>>(message: T) -> (PedersenCommitment, PedersenOpening) {
|
47 |
impl BanksClient {
|
48 |
#[allow(clippy::new_ret_no_self)]
|
49 |
pub fn new<C>(
|
194 |
/// with it.
|
195 |
#[allow(clippy::new_ret_no_self)]
|
196 |
pub unsafe fn new<C>(callback: C) -> *mut Self
|
44 |
}
|
45 |
#[allow(clippy::new_ret_no_self)]
|
46 |
fn new(clsid: &GUID, logger: Logger) -> Result<SoundCore, SoundCoreError> {
|
2115 |
impl ErrorPutToolchainClient {
|
2116 |
#[allow(clippy::new_ret_no_self)]
|
2117 |
pub fn new() -> Arc<dyn dist::Client> {
|
2164 |
impl ErrorAllocJobClient {
|
2165 |
#[allow(clippy::new_ret_no_self)]
|
2166 |
pub fn new() -> Arc<dyn dist::Client> {
|
2219 |
impl ErrorSubmitToolchainClient {
|
2220 |
#[allow(clippy::new_ret_no_self)]
|
2221 |
pub fn new() -> Arc<dyn dist::Client> {
|
2288 |
impl ErrorRunJobClient {
|
2289 |
#[allow(clippy::new_ret_no_self)]
|
2290 |
pub fn new() -> Arc<dyn dist::Client> {
|
2367 |
impl OneshotClient {
|
2368 |
#[allow(clippy::new_ret_no_self)]
|
2369 |
pub fn new(code: i32, stdout: Vec<u8>, stderr: Vec<u8>) -> Arc<dyn dist::Client> {
|
106 |
impl<T> LocalChannel<T> {
|
107 |
#[allow(clippy::new_ret_no_self)]
|
108 |
fn new(capacity: ChannelCapacity) -> (LocalSender<T>, LocalReceiver<T>) {
|
64 |
impl Connector<(), ()> {
|
65 |
#[allow(clippy::new_ret_no_self, clippy::let_unit_value)]
|
66 |
pub fn new() -> Connector<
|
17 |
impl Runtime {
|
18 |
#[allow(clippy::new_ret_no_self)]
|
19 |
/// Returns a new runtime initialized with default configuration values.
|
52 |
#[allow(clippy::new_ret_no_self)]
|
53 |
/// Create new system.
|
60 |
#[allow(clippy::new_ret_no_self)]
|
61 |
/// Create new system using provided tokio Handle.
|
431 |
/// Specifies a non-mappable buffer with the given `size` and `usage` values.
|
432 |
#[allow(clippy::new_ret_no_self)]
|
433 |
pub fn new(size: vk::DeviceSize, usage: vk::BufferUsageFlags) -> BufferInfoBuilder {
|
114 |
/// Specifies a default blend mode which is not enabled.
|
115 |
#[allow(clippy::new_ret_no_self)]
|
116 |
pub fn new() -> BlendModeBuilder {
|
268 |
/// Specifies a default depth/stencil mode which is equal to [`DepthStencilMode::IGNORE`].
|
269 |
#[allow(clippy::new_ret_no_self)]
|
270 |
pub fn new() -> DepthStencilModeBuilder {
|
659 |
/// Specifies a graphic pipeline.
|
660 |
#[allow(clippy::new_ret_no_self)]
|
661 |
pub fn new() -> GraphicPipelineInfoBuilder {
|
394 |
impl ImageInfo {
|
395 |
#[allow(clippy::new_ret_no_self)]
|
396 |
const fn new(
|
763 |
/// Specifies a default view with the given `fmt` and `ty` values.
|
764 |
#[allow(clippy::new_ret_no_self)]
|
765 |
pub fn new(format: vk::Format, ty: ImageType) -> ImageViewInfoBuilder {
|
811 |
/// Specifies a default driver configuration.
|
812 |
#[allow(clippy::new_ret_no_self)]
|
813 |
pub fn new() -> DriverConfigBuilder {
|
395 |
/// Specifies a ray trace pipeline.
|
396 |
#[allow(clippy::new_ret_no_self)]
|
397 |
pub fn new() -> RayTracePipelineInfoBuilder {
|
326 |
/// Specifies a shader with the given `stage` and shader code values.
|
327 |
#[allow(clippy::new_ret_no_self)]
|
328 |
pub fn new(stage: vk::ShaderStageFlags, spirv: impl ShaderCode) -> ShaderBuilder {
|
50 |
/// Specifies an event loop.
|
51 |
#[allow(clippy::new_ret_no_self)]
|
52 |
pub fn new() -> EventLoopBuilder {
|
54 |
/// Creates a new test transport.
|
55 |
#[allow(clippy::new_ret_no_self)]
|
56 |
pub fn new() -> Arc<TestTransport> {
|
16 |
#[allow(clippy::new_ret_no_self)]
|
17 |
impl<M> ModeWrapper<M>
|
36 |
#[allow(clippy::new_ret_no_self)]
|
37 |
impl<'a> DashEscapeFilter<'a, Cookie> {
|
55 |
#[allow(clippy::new_ret_no_self)]
|
56 |
impl<'a> PartialBodyFilter<'a, Cookie> {
|
36 |
#[allow(clippy::new_ret_no_self)]
|
37 |
impl<'a> TrailingWSFilter<'a, Cookie> {
|
194 |
#[allow(clippy::new_ret_no_self)]
|
195 |
impl<'a> Identity<'a, Cookie> {
|
276 |
#[allow(clippy::new_ret_no_self)]
|
277 |
impl<'a, W: 'a + io::Write + Send + Sync> Generic<W, Cookie> {
|
362 |
#[allow(clippy::new_ret_no_self)]
|
363 |
impl<'a> Armorer<'a, Cookie> {
|
436 |
#[allow(clippy::new_ret_no_self)]
|
437 |
impl<'a> Encryptor<'a, Cookie> {
|
509 |
#[allow(clippy::new_ret_no_self)]
|
510 |
impl<'a, S: 'a + aead::Schedule> AEADEncryptor<'a, Cookie, S> {
|
15 |
#[allow(clippy::new_ret_no_self)]
|
16 |
impl<'a> BZ<'a, Cookie> {
|
152 |
pub trait ShipyardRwLock {
|
153 |
#[allow(clippy::new_ret_no_self)]
|
154 |
fn new() -> Box<dyn ShipyardRwLock + Send + Sync>
|
254 |
/// and a receiving channel for any incoming data
|
255 |
#[allow(clippy::new_ret_no_self)]
|
256 |
pub fn new() -> (ConnectionMgrHandle, ConnectionMgrEventRecv, ConnectionCount) {
|
519 |
impl Store {
|
520 |
#[allow(clippy::new_ret_no_self)]
|
521 |
#[allow(clippy::redundant_pattern_matching)]
|
394 |
/// example: <https://fiddle.skia.org/c/@Canvas_int_int_const_SkSurfaceProps_star>
|
395 |
#[allow(clippy::new_ret_no_self)]
|
396 |
pub fn new<'lt>(
|
36 |
#[allow(clippy::new_ret_no_self)]
|
37 |
/// Create a new slice/header DST in a [`AllocSliceDst`] container.
|
135 |
#[allow(clippy::new_ret_no_self)]
|
136 |
/// Create a new slice/header DST from a slice, in a [`AllocSliceDst`] container.
|
210 |
#[allow(clippy::new_ret_no_self)]
|
211 |
/// Create a new str/header DST in a [`AllocSliceDst`] container.
|
75 |
impl<W: io::Write> Logfmt<W> {
|
76 |
#[allow(clippy::new_ret_no_self)]
|
77 |
pub fn new(io: W) -> LogfmtBuilder<W> {
|
172 |
/// Build custom `Json` `Drain`
|
173 |
#[cfg_attr(feature = "cargo-clippy", allow(new_ret_no_self))]
|
174 |
pub fn new(io: W) -> MozLogJsonBuilder<W> {
|
473 |
/// New `TermBuilder`
|
474 |
#[allow(clippy::new_ret_no_self)]
|
475 |
pub fn new(d: D) -> FullFormatBuilder<D> {
|
619 |
/// New `CompactFormatBuilder`
|
620 |
#[allow(clippy::new_ret_no_self)]
|
621 |
pub fn new(d: D) -> CompactFormatBuilder<D> {
|
1478 |
/// Start building `TermDecorator`
|
1479 |
#[allow(clippy::new_ret_no_self)]
|
1480 |
pub fn new() -> TermDecoratorBuilder {
|
66 |
/// Create the stage using `bank`. Exit when `verified_receiver` is dropped.
|
67 |
#[allow(clippy::new_ret_no_self)]
|
68 |
pub fn new(
|
25 |
impl BlockstreamService {
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
pub fn new(
|
21 |
impl FetchStage {
|
22 |
#[allow(clippy::new_ret_no_self)]
|
23 |
pub fn new(
|
25 |
impl LocalVoteSignerService {
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
pub fn new(port_range: PortRange) -> (Self, SocketAddr) {
|
77 |
#[allow(
|
78 |
clippy::new_ret_no_self,
|
79 |
clippy::too_many_arguments,
|
200 |
/// * `keypair` - Keypair for this replicator
|
201 |
#[allow(clippy::new_ret_no_self)]
|
202 |
pub fn new(
|
115 |
impl RetransmitStage {
|
116 |
#[allow(clippy::new_ret_no_self)]
|
117 |
#[allow(clippy::too_many_arguments)]
|
36 |
impl SigVerifyStage {
|
37 |
#[allow(clippy::new_ret_no_self)]
|
38 |
pub fn new(
|
60 |
/// * `blocktree` - the ledger itself
|
61 |
#[allow(clippy::new_ret_no_self, clippy::too_many_arguments)]
|
62 |
pub fn new<T>(
|
173 |
/// * `keypair` - Keypair for this archiver
|
174 |
#[allow(clippy::new_ret_no_self)]
|
175 |
pub fn new(
|
47 |
impl BanksClient {
|
48 |
#[allow(clippy::new_ret_no_self)]
|
49 |
pub fn new<C>(
|
398 |
/// Create the stage using `bank`. Exit when `verified_receiver` is dropped.
|
399 |
#[allow(clippy::new_ret_no_self)]
|
400 |
#[allow(clippy::too_many_arguments)]
|
25 |
impl CacheBlockMetaService {
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
pub fn new(
|
70 |
impl CostUpdateService {
|
71 |
#[allow(clippy::new_ret_no_self)]
|
72 |
pub fn new(
|
35 |
impl FetchStage {
|
36 |
#[allow(clippy::new_ret_no_self)]
|
37 |
pub fn new(
|
377 |
impl ReplayStage {
|
378 |
#[allow(clippy::new_ret_no_self, clippy::too_many_arguments)]
|
379 |
pub fn new(
|
24 |
impl RewardsRecorderService {
|
25 |
#[allow(clippy::new_ret_no_self)]
|
26 |
pub fn new(
|
26 |
impl SamplePerformanceService {
|
27 |
#[allow(clippy::new_ret_no_self)]
|
28 |
pub fn new(
|
235 |
impl SigVerifyStage {
|
236 |
#[allow(clippy::new_ret_no_self)]
|
237 |
pub fn new<T: SigVerifier + 'static + Send + Clone>(
|
95 |
/// * `blockstore` - the ledger itself
|
96 |
#[allow(clippy::new_ret_no_self, clippy::too_many_arguments)]
|
97 |
pub fn new(
|
27 |
impl TransactionStatusService {
|
28 |
#[allow(clippy::new_ret_no_self)]
|
29 |
pub fn new(
|
54 |
impl BanksClient {
|
55 |
#[allow(clippy::new_ret_no_self)]
|
56 |
pub fn new<C>(
|
28 |
#[cfg(not(target_os = "solana"))]
|
29 |
#[allow(clippy::new_ret_no_self)]
|
30 |
fn keygen<T: RngCore + CryptoRng>(rng: &mut T) -> AeKey {
|
179 |
#[cfg(not(target_os = "solana"))]
|
180 |
#[allow(clippy::new_ret_no_self)]
|
181 |
pub fn new_rand() -> Self {
|
35 |
#[cfg(not(target_os = "solana"))]
|
36 |
#[allow(clippy::new_ret_no_self)]
|
37 |
pub fn new<T: Into<Scalar>>(amount: T) -> (PedersenCommitment, PedersenOpening) {
|
179 |
/// there.
|
180 |
#[allow(clippy::new_ret_no_self)]
|
181 |
pub fn new() -> Builder<O, C>
|
24 |
#[cfg(not(target_arch = "bpf"))]
|
25 |
#[allow(clippy::new_ret_no_self)]
|
26 |
fn keygen<T: RngCore + CryptoRng>(rng: &mut T) -> AeKey {
|
175 |
#[cfg(not(target_arch = "bpf"))]
|
176 |
#[allow(clippy::new_ret_no_self)]
|
177 |
pub fn default() -> Self {
|
50 |
#[cfg(not(target_arch = "bpf"))]
|
51 |
#[allow(clippy::new_ret_no_self)]
|
52 |
pub fn new<T: Into<Scalar>>(amount: T) -> (PedersenCommitment, PedersenOpening) {
|
43 |
impl Command {
|
44 |
#[allow(clippy::new_ret_no_self)]
|
45 |
pub fn new<S: AsRef<OsStr>>(program: S) -> PreCommand {
|
131 |
impl<T> Stele<T> {
|
132 |
#[allow(clippy::new_ret_no_self)]
|
133 |
/// Creates a new Stele returns a [`WriteHandle`] and [`ReadHandle`]
|
8 |
/// Constrains the CRC peripheral to play nicely with the other abstractions
|
9 |
#[allow(clippy::wrong_self_convention, clippy::new_ret_no_self)]
|
10 |
fn new(self) -> Crc;
|
8 |
/// Constrains the CRC peripheral to play nicely with the other abstractions
|
9 |
#[allow(clippy::wrong_self_convention, clippy::new_ret_no_self)]
|
10 |
fn new(self, ahb: &mut AHB) -> Crc;
|
241 |
/// the machine itself. The machine should have `run` called from an asynchronous task.
|
242 |
#[allow(clippy::new_ret_no_self)]
|
243 |
pub async fn new(
|
43 |
{
|
44 |
#[allow(clippy::new_ret_no_self)]
|
45 |
pub fn new<M: Into<MaybeOwned<'a, FlatBufferModel>>>(model: M, resolver: Op) -> Result<Self> {
|
33 |
/// - `transform` is not invertible
|
34 |
#[allow(clippy::new_ret_no_self)]
|
35 |
pub fn new(
|
79 |
/// `opacity` will be clamped to the 0..=1 range.
|
80 |
#[allow(clippy::new_ret_no_self)]
|
81 |
pub fn new(
|
62 |
/// - `transform` is not invertible
|
63 |
#[allow(clippy::new_ret_no_self)]
|
64 |
pub fn new(
|
205 |
impl SimpleQueryRow {
|
206 |
#[allow(clippy::new_ret_no_self)]
|
207 |
pub(crate) fn new(
|
51 |
/// Creates a new `tqdm` instance which handles progress automatically.
|
52 |
#[allow(clippy::new_ret_no_self)]
|
53 |
pub fn new<I: Iterator>(iter: I) -> TqdmAuto<I> {
|
142 |
impl TSSubscriber {
|
143 |
#[allow(clippy::new_ret_no_self)]
|
144 |
// this doesn't technically build a `Self`, but that's the way people should think of it
|
9 |
#[allow(clippy::new_ret_no_self)]
|
10 |
pub trait PulsedModelExt {
|
80 |
/// Returns the new posts in a given subreddit.
|
81 |
#[allow(clippy::new_ret_no_self)]
|
82 |
pub async fn new<T: Auth + Send + Sync>(&self, client: &Client<T>) -> Result<Vec<Link>, Error> {
|
80 |
{
|
81 |
#[allow(clippy::new_ret_no_self)]
|
82 |
#[allow(clippy::too_many_arguments)]
|
25 |
impl ProofStreamError {
|
26 |
#[allow(clippy::new_ret_no_self)]
|
27 |
pub fn new(message: &str) -> anyhow::Error {
|
61 |
/// * `signer` - An optional signer for requests, needed for Updates with Sig0, otherwise not needed
|
62 |
#[allow(clippy::new_ret_no_self)]
|
63 |
pub async fn new<F, S>(
|
542 |
/// * `client_connection` - the client_connection to use for all communication
|
543 |
#[allow(clippy::new_ret_no_self)]
|
544 |
pub fn new(conn: CC) -> SecureSyncClientBuilder<CC> {
|
42 |
/// * `client_config` - The TLS config
|
43 |
#[allow(clippy::new_ret_no_self)]
|
44 |
pub fn new(
|
62 |
/// * `client_config` - The TLS config
|
63 |
#[allow(clippy::new_ret_no_self)]
|
64 |
pub fn new_with_bind_addr(
|
54 |
/// handle which can be used to send messages into the stream.
|
55 |
#[allow(clippy::new_ret_no_self)]
|
56 |
pub fn new(
|
48 |
/// * `name_server` - the IP and Port of the DNS server to connect to
|
49 |
#[allow(clippy::new_ret_no_self)]
|
50 |
pub fn new(name_server: SocketAddr) -> (TcpClientConnect<S>, BufDnsStreamHandle) {
|
73 |
/// * `timeout` - connection timeout
|
74 |
#[allow(clippy::new_ret_no_self)]
|
75 |
pub fn with_bind_addr_and_timeout(
|
104 |
/// * `name_server` - the IP and Port of the DNS server to connect to
|
105 |
#[allow(clippy::new_ret_no_self, clippy::type_complexity)]
|
106 |
pub fn new<E>(
|
53 |
/// handle which can be used to send messages into the stream.
|
54 |
#[allow(clippy::new_ret_no_self)]
|
55 |
pub fn new(name_server: SocketAddr) -> UdpClientConnect<S, NoopMessageFinalizer> {
|
114 |
/// * `signer` - An optional signer for requests, needed for Updates with Sig0, otherwise not needed
|
115 |
#[allow(clippy::new_ret_no_self)]
|
116 |
pub fn new<F>(
|
27 |
{
|
28 |
#[allow(clippy::new_ret_no_self)]
|
29 |
pub fn new() -> Box<dyn Converter<T>> {
|
66 |
/// * `opts` - The compilation options
|
67 |
#[allow(clippy::new_ret_no_self)]
|
68 |
pub fn new(
|
364 |
#[allow(clippy::wrong_self_convention)]
|
365 |
#[allow(clippy::new_ret_no_self)]
|
366 |
pub(crate) fn new(self) -> Error {
|
291 |
impl USimpleError {
|
292 |
#[allow(clippy::new_ret_no_self)]
|
293 |
pub fn new<S: Into<String>>(code: i32, message: S) -> Box<dyn UError> {
|
321 |
impl UUsageError {
|
322 |
#[allow(clippy::new_ret_no_self)]
|
323 |
pub fn new<S: Into<String>>(code: i32, message: S) -> Box<dyn UError> {
|
381 |
impl UIoError {
|
382 |
#[allow(clippy::new_ret_no_self)]
|
383 |
pub fn new<S: Into<String>>(kind: std::io::ErrorKind, context: S) -> Box<dyn UError> {
|
649 |
impl ExitCode {
|
650 |
#[allow(clippy::new_ret_no_self)]
|
651 |
pub fn new(code: i32) -> Box<dyn UError> {
|
571 |
/// V8::initialize() must have run prior to this.
|
572 |
#[allow(clippy::new_ret_no_self)]
|
573 |
pub fn new(params: CreateParams) -> OwnedIsolate {
|
587 |
#[allow(clippy::new_ret_no_self)]
|
588 |
pub fn snapshot_creator(
|
594 |
#[allow(clippy::new_ret_no_self)]
|
595 |
pub fn snapshot_creator_from_existing_snapshot(
|
118 |
impl<'s, P: param::NewContextScope<'s>> ContextScope<'s, P> {
|
119 |
#[allow(clippy::new_ret_no_self)]
|
120 |
pub fn new(param: &'s mut P, context: Local<Context>) -> P::NewScope {
|
153 |
impl<'s> HandleScope<'s> {
|
154 |
#[allow(clippy::new_ret_no_self)]
|
155 |
pub fn new<P: param::NewHandleScope<'s>>(param: &'s mut P) -> P::NewScope {
|
305 |
impl<'s, 'e: 's> EscapableHandleScope<'s, 'e> {
|
306 |
#[allow(clippy::new_ret_no_self)]
|
307 |
pub fn new<P: param::NewEscapableHandleScope<'s, 'e>>(
|
340 |
impl<'s, P: param::NewTryCatch<'s>> TryCatch<'s, P> {
|
341 |
#[allow(clippy::new_ret_no_self)]
|
342 |
pub fn new(param: &'s mut P) -> P::NewScope {
|
528 |
impl<'s> CallbackScope<'s> {
|
529 |
#[allow(clippy::new_ret_no_self)]
|
530 |
pub unsafe fn new<P: param::NewCallbackScope<'s>>(param: P) -> P::NewScope {
|
106 |
#[inline(always)]
|
107 |
#[allow(clippy::new_ret_no_self)]
|
108 |
pub(crate) fn new(
|
116 |
#[inline(always)]
|
117 |
#[allow(clippy::new_ret_no_self)]
|
118 |
pub(crate) fn from_existing_snapshot(
|
818 |
/// see [with_address](#method.with_address)
|
819 |
#[allow(clippy::new_ret_no_self)]
|
820 |
pub fn new<S: ?Sized + AsRef<str>>(address: &S) -> Result<Arc<RwLock<Self>>> {
|
92 |
impl Listener {
|
93 |
#[allow(clippy::new_ret_no_self)]
|
94 |
pub fn new<S: ?Sized + AsRef<str>>(address: &S) -> Result<Self> {
|
7 |
#[allow(clippy::new_ret_no_self)]
|
8 |
pub trait TileConverterTrait {
|
17 |
#[allow(clippy::new_ret_no_self)]
|
18 |
pub trait TileReaderTrait: Debug + Send + Sync {
|
109 |
impl Driver {
|
110 |
#[allow(clippy::new_ret_no_self)]
|
111 |
pub fn new(api: ApiImport) -> Driver {
|
181 |
impl DriverBrowser {
|
182 |
#[allow(clippy::new_ret_no_self)]
|
183 |
fn new(api: ApiImport) -> (Rc<DriverBrowserInner>, Driver) {
|
175 |
/// Creates a new `StreamBuffer`
|
176 |
#[allow(clippy::new_ret_no_self)]
|
177 |
pub fn new<T, F>(
|
11 |
impl VectorSource {
|
12 |
#[allow(clippy::new_ret_no_self)]
|
13 |
pub fn new<A>(input: Vec<A>) -> Source<A>
|
69 |
impl CopyBlock {
|
70 |
#[allow(clippy::new_ret_no_self)]
|
71 |
pub fn new<A>() -> Middle<A, A>
|
39 |
/// The actual size is the least common multiple of the page size and the size of `T`.
|
40 |
#[allow(clippy::new_ret_no_self)]
|
41 |
pub fn new<T>() -> Result<Writer<T>, CircularError> {
|
21 |
/// The actual size is the least common multiple of the page size and the size of `T`.
|
22 |
#[allow(clippy::new_ret_no_self)]
|
23 |
pub fn new<T>() -> Result<Writer<T>, CircularError> {
|
34 |
/// The actual size is the least common multiple of the page size and the size of `T`.
|
35 |
#[allow(clippy::new_ret_no_self)]
|
36 |
pub fn new<T>() -> Result<Writer<T>, CircularError> {
|
84 |
/// * `nr_events`: maximum number of concurrently processing IO operations.
|
85 |
#[allow(clippy::new_ret_no_self)]
|
86 |
pub fn new(nr_events: c_uint) -> Result<Self> {
|
28 |
#[cfg(not(target_os = "solana"))]
|
29 |
#[allow(clippy::new_ret_no_self)]
|
30 |
fn keygen<T: RngCore + CryptoRng>(rng: &mut T) -> AeKey {
|
179 |
#[cfg(not(target_os = "solana"))]
|
180 |
#[allow(clippy::new_ret_no_self)]
|
181 |
pub fn new_rand() -> Self {
|
35 |
#[cfg(not(target_os = "solana"))]
|
36 |
#[allow(clippy::new_ret_no_self)]
|
37 |
pub fn new<T: Into<Scalar>>(amount: T) -> (PedersenCommitment, PedersenOpening) {
|
10 |
impl CompressedInputStream {
|
11 |
#[allow(clippy::new_ret_no_self)]
|
12 |
pub fn new<'r>(
|
366 |
/// ```
|
367 |
#[allow(clippy::new_ret_no_self)]
|
368 |
pub fn new(
|
1865 |
/// [`WasiState`].
|
1866 |
#[allow(clippy::new_ret_no_self)]
|
1867 |
pub fn new(program_name: impl AsRef<str>) -> WasiStateBuilder {
|
1423 |
/// [`WasiState`].
|
1424 |
#[allow(clippy::new_ret_no_self)]
|
1425 |
pub fn new(program_name: impl AsRef<str>) -> WasiStateBuilder {
|
1547 |
/// [`WasiState`].
|
1548 |
#[allow(clippy::new_ret_no_self)]
|
1549 |
pub fn new(program_name: impl AsRef<str>) -> WasiStateBuilder {
|
72 |
impl File {
|
73 |
#[allow(clippy::new_ret_no_self)]
|
74 |
pub fn new(parent: Arc<dyn Node>) -> Arc<dyn Node> {
|
106 |
impl LossyCString {
|
107 |
#[allow(clippy::new_ret_no_self)]
|
108 |
pub(crate) fn new<T: AsRef<str>>(t: T) -> CString {
|
680 |
#[cfg(unix)]
|
681 |
#[allow(clippy::new_ret_no_self)] // It's basically Self, in a weird way.
|
682 |
pub(super) fn new(nwin: &mut dyn crate::Nwin) -> Option<Box<dyn Draw>> {
|
82 |
impl TearOff {
|
83 |
#[allow(clippy::new_ret_no_self)]
|
84 |
unsafe fn new(object: *mut std::ffi::c_void, strong_count: u32) -> IWeakReferenceSource {
|
53 |
/// * `pty`: The instantiated PTY struct.
|
54 |
#[allow(clippy::new_ret_no_self)]
|
55 |
fn new(args: &PTYArgs) -> Result<Box<dyn PTYImpl>, OsString>
|
169 |
impl WindowBuilder<(), ()> {
|
170 |
#[allow(clippy::new_ret_no_self)]
|
171 |
pub fn new() -> WindowBuilder<&'static str, LogicalSize<u32>> {
|
436 |
impl InnerWindowBuilder<(), (), ()> {
|
437 |
#[allow(clippy::new_ret_no_self)]
|
438 |
#[inline]
|
49 |
/// Returns `Err(HalError(0))` if the channel is invalid.
|
50 |
#[allow(clippy::new_ret_no_self)]
|
51 |
pub fn new(channel: i32) -> HalResult<AnalogInput> {
|
48 |
/// fails.
|
49 |
#[allow(clippy::new_ret_no_self)]
|
50 |
pub fn new(channel: i32) -> HalResult<Self> {
|
163 |
impl DigitalInput {
|
164 |
#[allow(clippy::new_ret_no_self)]
|
165 |
pub fn new(channel: i32) -> HalResult<Self> {
|
56 |
/// `PortDNE` if `port` is greater than 6.
|
57 |
#[allow(clippy::new_ret_no_self)]
|
58 |
pub fn new(port: u8) -> Result<Self, JoystickError> {
|
73 |
/// `AxisDNE` if `axis` is an invalid index.
|
74 |
#[allow(clippy::new_ret_no_self)]
|
75 |
pub fn new(axis: u8) -> Result<Self, JoystickError> {
|
90 |
/// `PovDNE` if `pov` is an invalid index.
|
91 |
#[allow(clippy::new_ret_no_self)]
|
92 |
pub fn new(pov: u8) -> Result<Self, JoystickError> {
|
71 |
/// initialization fails.
|
72 |
#[allow(clippy::new_ret_no_self)]
|
73 |
pub fn new(channel_a: i32, channel_b: i32, encoding: EncodingType) -> HalResult<Encoder> {
|
45 |
/// Initalizes a PDP using the default module, which is 0, according to WPILibC.
|
46 |
#[allow(clippy::new_ret_no_self)]
|
47 |
pub fn new() -> HalResult<PowerDistributionPanel> {
|
76 |
/// Make a new solenoid with the given channel.
|
77 |
#[allow(clippy::new_ret_no_self)]
|
78 |
pub fn new(channel: i32) -> HalResult<Solenoid> {
|
161 |
impl DoubleSolenoid {
|
162 |
#[allow(clippy::new_ret_no_self)]
|
163 |
pub fn new(forward_channel: i32, reverse_channel: i32) -> HalResult<DoubleSolenoid> {
|
143 |
/// the connection.
|
144 |
#[allow(clippy::new_ret_no_self)]
|
145 |
pub fn new<'a, 'b, C: Connection>(
|
81 |
impl<'a> Backbuffer<'a> {
|
82 |
#[allow(clippy::new_ret_no_self)]
|
83 |
pub fn new(
|
106 |
/// [docs](https://www.kernel.org/doc/html/latest/networking/af_xdp.html#xdp-shared-umem-bind-flag).
|
107 |
#[allow(clippy::new_ret_no_self)]
|
108 |
#[allow(clippy::type_complexity)]
|
34 |
/// Create a new `response::Reader` that consumes a response body from a socket
|
35 |
#[allow(clippy::new_ret_no_self)]
|
36 |
pub(crate) fn new(readable: &mut dyn Read) -> Result<Self, Error> {
|
88 |
/// This method is used to instantiate a new `JavaScript` value using a given `JsFunction` that represents the constructor for the object.
|
89 |
#[allow(clippy::new_ret_no_self)]
|
90 |
#[inline]
|
787 |
#[allow(clippy::new_ret_no_self)]
|
788 |
pub(super) fn new(config: Config) -> impl Resolve<ZResult<Session>> + Send {
|
1 |
#![allow(clippy::type_complexity, clippy::new_ret_no_self)]
|
2 |
//! MQTT v3.1 Server framework
|
226 |
clippy::needless_doctest_main,
|
227 |
clippy::new_ret_no_self,
|
228 |
clippy::redundant_else,
|
20 |
#![deny(missing_docs)]
|
21 |
#![allow(clippy::trivially_copy_pass_by_ref, clippy::new_ret_no_self)]
|
24 |
#![cfg_attr(feature = "cargo-clippy", allow(redundant_field_names, single_match, cast_lossless, doc_markdown, match_same_arms, unreadable_literal, new_ret_no_self))]
|
107 |
impl Caprice {
|
108 |
#![allow(clippy::new_ret_no_self)]
|
109 |
/// Creates a new `Caprice` builder object.
|
2 |
clippy::needless_pass_by_value,
|
3 |
clippy::new_ret_no_self,
|
4 |
clippy::redundant_closure,
|
9 |
clippy::upper_case_acronyms,
|
10 |
clippy::new_ret_no_self,
|
11 |
clippy::wrong_self_convention
|
29 |
clippy::module_name_repetitions,
|
30 |
clippy::new_ret_no_self,
|
31 |
clippy::type_complexity,
|
26 |
#![allow(clippy::new_ret_no_self)]
|
4 |
// Calm down clippy.
|
5 |
#![allow(clippy::new_ret_no_self)]
|
6 |
#![allow(clippy::single_match)]
|
22 |
// Calm down clippy.
|
23 |
#![allow(clippy::new_ret_no_self)]
|
24 |
#![allow(clippy::single_match)]
|
6 |
clippy::needless_question_mark,
|
7 |
clippy::new_ret_no_self,
|
8 |
clippy::new_without_default,
|
1 |
#![allow(clippy::new_ret_no_self)]
|
157 |
#![warn(missing_docs)]
|
158 |
#![allow(clippy::new_ret_no_self, clippy::needless_doctest_main)]
|
159 |
#![allow(clippy::duplicate_mod)] // TODO: Remove this after the text/mod.rs format_priv hack has been removed (0.8.0+)
|
1 |
#![allow(clippy::new_ret_no_self)]
|
11 |
feature = "cargo-clippy",
|
12 |
allow(doc_markdown, inline_always, new_ret_no_self)
|
13 |
)]
|
357 |
clippy::needless_doctest_main,
|
358 |
clippy::new_ret_no_self,
|
359 |
clippy::wrong_self_convention
|
3 |
#![allow(clippy::too_many_arguments)]
|
4 |
#![allow(clippy::new_ret_no_self)]
|
150 |
// Allow clippy lints
|
151 |
#![allow(unknown_lints, clippy::new_ret_no_self)]
|
3 |
#![allow(clippy::excessive_precision)]
|
4 |
#![allow(clippy::new_ret_no_self)]
|
5 |
#![allow(clippy::useless_let_if_seq)]
|
2 |
#![warn(missing_docs)]
|
3 |
#![allow(clippy::new_ret_no_self)]
|
4 |
extern crate atomic_immut;
|
4 |
#![warn(missing_docs)]
|
5 |
#![allow(clippy::new_ret_no_self)]
|
6 |
extern crate bytecodec;
|
1 |
//! Frugal shared utilities.
|
2 |
#![allow(clippy::new_ret_no_self)]
|
3 |
extern crate rustracing;
|
8 |
#![warn(missing_docs)]
|
9 |
#![allow(clippy::new_ret_no_self)]
|
10 |
extern crate atomic_immut;
|
4 |
#![warn(missing_docs)]
|
5 |
#![allow(clippy::new_ret_no_self)]
|
6 |
extern crate adler32;
|
4 |
#![warn(missing_docs)]
|
5 |
#![allow(clippy::new_ret_no_self)]
|
6 |
extern crate adler32;
|
1 |
#![recursion_limit = "512"]
|
2 |
#![allow(clippy::new_ret_no_self)]
|
3 |
#![cfg_attr(not(RUSTC_IS_STABLE), feature(core_intrinsics))]
|
3 |
clippy::must_use_candidate,
|
4 |
clippy::new_ret_no_self,
|
5 |
clippy::cast_precision_loss,
|
43 |
clippy::manual_filter_map,
|
44 |
clippy::new_ret_no_self,
|
45 |
renamed_and_removed_lints,
|
43 |
clippy::manual_filter_map,
|
44 |
clippy::new_ret_no_self,
|
45 |
renamed_and_removed_lints,
|
118 |
// Some of our constructors return results.
|
119 |
#![allow(clippy::module_inception, clippy::new_ret_no_self)]
|
120 |
#![warn(missing_docs)]
|
14 |
// Some of our constructors return results.
|
15 |
#![allow(clippy::new_ret_no_self)]
|
1 |
#![allow(clippy::large_enum_variant)]
|
2 |
#![allow(clippy::new_ret_no_self)]
|
74 |
clippy::must_use_candidate,
|
75 |
clippy::new_ret_no_self,
|
76 |
clippy::wildcard_imports
|
6 |
clippy::implicit_hasher,
|
7 |
clippy::new_ret_no_self,
|
8 |
clippy::op_ref,
|
15 |
#![allow(clippy::new_ret_no_self)]
|
1 |
#![allow(clippy::new_ret_no_self)]
|
2 |
#![allow(clippy::blocks_in_if_conditions)]
|
1 |
#![allow(clippy::new_ret_no_self)]
|
2 |
//! kitsune tx2 quic transport backend
|
1 |
#![allow(clippy::new_ret_no_self)]
|
2 |
#![allow(clippy::never_loop)]
|
1 |
#![allow(clippy::new_ret_no_self)]
|
2 |
#![allow(clippy::manual_async_fn)]
|
2 |
#![deny(warnings)]
|
3 |
#![allow(clippy::new_ret_no_self)]
|
4 |
//! Rust client SDK for the AWS Lambda Runtime APIs. This crate defines
|
6 |
// Our new methods return Result<Self, _> types
|
7 |
#![allow(clippy::new_ret_no_self, clippy::result_unit_err)]
|
8 |
/// Bindings to the C interface
|
14 |
clippy::redundant_closure_call,
|
15 |
clippy::new_ret_no_self
|
16 |
)]
|
3 |
clippy::needless_doctest_main,
|
4 |
clippy::new_ret_no_self,
|
5 |
clippy::wrong_self_convention
|
143 |
// These clippy lints are somewhat at odds with our use of `new()`.
|
144 |
#![allow(clippy::new_ret_no_self, clippy::wrong_self_convention)]
|
23 |
#![allow(clippy::new_ret_no_self)]
|
23 |
#![allow(clippy::new_ret_no_self)]
|
44 |
impl<'a> TrieIterator<'a> {
|
45 |
#![allow(clippy::new_ret_no_self)]
|
46 |
/// Create a new iterator.
|
210 |
impl<'a> TrieUpdateIterator<'a> {
|
211 |
#![allow(clippy::new_ret_no_self)]
|
212 |
pub fn new(
|
52 |
impl<'a> TrieIterator<'a> {
|
53 |
#![allow(clippy::new_ret_no_self)]
|
54 |
/// Create a new iterator.
|
210 |
impl<'a> TrieUpdateIterator<'a> {
|
211 |
#![allow(clippy::new_ret_no_self)]
|
212 |
pub fn new(
|
1 |
// TODO: Perhaps move constructors into Message
|
2 |
#![allow(clippy::new_ret_no_self)]
|
55 |
clippy::let_unit_value,
|
56 |
clippy::new_ret_no_self,
|
57 |
clippy::new_without_default,
|
15 |
)]
|
16 |
#![allow(clippy::new_ret_no_self)]
|
17 |
#![cfg_attr(not(feature = "std"), no_std)]
|
150 |
#![allow(
|
151 |
clippy::new_ret_no_self,
|
152 |
clippy::should_implement_trait,
|
155 |
variant_size_differences,
|
156 |
clippy::new_ret_no_self
|
157 |
)]
|
99 |
#![allow(clippy::len_without_is_empty)]
|
100 |
#![allow(clippy::new_ret_no_self)]
|
1 |
// Gates have `new` methods that return `GateRef`s.
|
2 |
#![allow(clippy::new_ret_no_self)]
|
15 |
#![allow(clippy::new_ret_no_self)]
|
119 |
clippy::new_without_default,
|
120 |
clippy::new_ret_no_self
|
121 |
)]
|
119 |
clippy::new_without_default,
|
120 |
clippy::new_ret_no_self
|
121 |
)]
|
1 |
#![allow(clippy::new_ret_no_self)]
|
2 |
#![allow(clippy::or_fun_call)]
|
1 |
#![allow(clippy::new_ret_no_self)]
|
2 |
#![allow(clippy::or_fun_call)]
|
4 |
// #![deny(clippy::nursery)]
|
5 |
#![allow(clippy::new_ret_no_self)]
|
6 |
#![allow(clippy::large_enum_variant)]
|
1 |
#![allow(clippy::new_ret_no_self)]
|
2 |
#![deny(rust_2018_idioms)]
|
150 |
// Allow clippy lints
|
151 |
#![allow(unknown_lints, clippy::new_ret_no_self)]
|
285 |
clippy::too_many_arguments,
|
286 |
clippy::new_ret_no_self,
|
287 |
clippy::ptr_arg,
|
49 |
#![warn(missing_docs)]
|
50 |
#![allow(clippy::new_ret_no_self)]
|
51 |
#[macro_use]
|
375 |
// Good reasons
|
376 |
#![allow(clippy::new_ret_no_self)] // We often return Value, even though its morally a Self
|
377 |
#![allow(clippy::needless_return)] // Mixing explicit returns with implicit ones sometimes looks odd
|
4 |
#![allow(clippy::new_ret_no_self)] // Used for new() fns in InitTransaction, DataTransaction & RevocationTransaction impls
|
5 |
// These fns don't return Self, instead return Transaction struct which let us write this code in a simpler way
|
33 |
clippy::indexing_slicing,
|
34 |
clippy::new_ret_no_self,
|
35 |
clippy::needless_pass_by_value
|
117 |
impl<SG: ServerGatewayApis + Send + Sync + 'static> ActivityHeartbeatManager<SG> {
|
118 |
#![allow(clippy::new_ret_no_self)]
|
119 |
/// Creates a new instance of an activity heartbeat manager and returns a handle to the user,
|
1 |
//! Tokenization utilities for building parsers in Rust
|
2 |
#![allow(clippy::type_complexity, clippy::new_ret_no_self)]
|
1 |
#![allow(clippy::new_ret_no_self)]
|
2 |
use std::convert::TryInto;
|
108 |
clippy::let_unit_value,
|
109 |
clippy::new_ret_no_self,
|
110 |
clippy::op_ref,
|
9 |
clippy::upper_case_acronyms,
|
10 |
clippy::new_ret_no_self,
|
11 |
clippy::wrong_self_convention
|
19 |
clippy::manual_swap,
|
20 |
clippy::new_ret_no_self,
|
21 |
clippy::unnecessary_operation,
|
4 |
clippy::new_without_default,
|
5 |
clippy::new_ret_no_self,
|
6 |
clippy::unnecessary_wraps,
|
4 |
clippy::new_without_default,
|
5 |
clippy::new_ret_no_self,
|
6 |
clippy::too_many_arguments
|
3 |
#![allow(clippy::new_ret_no_self)]
|
3 |
#![allow(
|
4 |
clippy::new_ret_no_self,
|
5 |
clippy::needless_pass_by_value,
|
24 |
// Calm down clippy.
|
25 |
#![allow(clippy::new_ret_no_self)]
|
26 |
#![allow(clippy::single_match)]
|
7 |
impl Argument {
|
8 |
#![allow(clippy::new_ret_no_self)]
|
9 |
pub fn new(name: &str) -> Arg {
|
341 |
#![allow(clippy::unit_arg)]
|
342 |
#![allow(clippy::new_ret_no_self)]
|
343 |
#![allow(clippy::too_many_arguments)]
|