• accesskit_windows 0.10.4/src/tests/mod.rs
    311
    impl FocusEventHandler {
    312
        #[allow(clippy::new_ret_no_self)] // it does return self, but wrapped
    313
        pub(crate) fn new() -> (
  • actix-httpbin 0.1.0/src/response/mod.rs
    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> {
  • actix-rt 2.8.0/src/runtime.rs
    23
        /// Returns a new runtime initialized with default configuration values.
    24
        #[allow(clippy::new_ret_no_self)]
    25
        pub fn new() -> io::Result<Self> {
  • actix-rt 2.8.0/src/system.rs
    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 {
  • actori-http 1.0.1/src/client/connector.rs
    64
    impl Connector<(), ()> {
    65
        #[allow(clippy::new_ret_no_self, clippy::let_unit_value)]
    66
        pub fn new() -> Connector<
  • actori-rt 1.0.0/src/runtime.rs
    17
    impl Runtime {
    18
        #[allow(clippy::new_ret_no_self)]
    19
        /// Returns a new runtime initialized with default configuration values.
  • actori-rt 1.0.0/src/system.rs
    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.
  • agpu 0.1.2/src/graphics/gpu.rs
    33
    impl GpuCtx {
    34
        #[allow(clippy::new_ret_no_self)]
    35
        /// Shortcut to Self::builder().build() with the default settings.
  • Algod 0.1.1/src/data_structures/heap.rs
    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>
  • all-is-cubes-ui 0.5.0/src/vui/widgets.rs
    31
    impl OneshotController {
    32
        #[allow(clippy::new_ret_no_self)]
    33
        pub fn new(transaction: vui::WidgetTransaction) -> Box<dyn vui::WidgetController> {
  • aptos-logger 0.2.7/src/aptos_logger.rs
    397
        #[allow(clippy::new_ret_no_self)]
    398
        pub fn new() -> AptosDataBuilder {
  • aptos-logger-link 0.1.0/src/aptos_logger.rs
    467
        #[allow(clippy::new_ret_no_self)]
    468
        pub fn new() -> AptosDataBuilder {
  • arcon 0.2.1/src/stream/operator/function/filter.rs
    23
    {
    24
        #[allow(clippy::new_ret_no_self)]
    25
        pub fn new(
  • arcon 0.2.1/src/stream/operator/function/flatmap.rs
    27
    {
    28
        #[allow(clippy::new_ret_no_self)]
    29
        pub fn new(
  • arcon 0.2.1/src/stream/operator/function/map.rs
    25
    {
    26
        #[allow(clippy::new_ret_no_self)]
    27
        pub fn new(
  • arcon 0.2.1/src/stream/operator/function/map_in_place.rs
    23
    {
    24
        #[allow(clippy::new_ret_no_self)]
    25
        pub fn new(
  • atsamd-hal 0.15.1/src/dmac/transfer.rs
    334
        /// Panics if both buffers have a length > 1 and are not of equal length.
    335
        #[allow(clippy::new_ret_no_self)]
    336
        #[inline]
  • av-metrics 0.9.0/src/video/ciede/delta_e/de2000.rs
    46
        #[allow(clippy::new_ret_no_self)]
    47
        pub fn new(color_1: Lab, color_2: Lab, ksub: KSubArgs) -> f32 {
  • awc 3.1.0/src/builder.rs
    40
    impl ClientBuilder {
    41
        #[allow(clippy::new_ret_no_self)]
    42
        pub fn new() -> ClientBuilder<
  • awc 3.1.0/src/client/connector.rs
    71
    impl Connector<()> {
    72
        #[allow(clippy::new_ret_no_self, clippy::let_unit_value)]
    73
        pub fn new() -> Connector<
  • azure_sdk_cosmos 0.100.3/src/clients/cosmos_struct.rs
    108
    impl ClientBuilder {
    109
        #[allow(clippy::new_ret_no_self)]
    110
        pub fn new<'a, IntoCowStr>(
  • azure_sdk_storage_core 0.44.4/src/shared_access_signature.rs
    145
    impl SharedAccessSignature {
    146
        #[allow(clippy::new_ret_no_self)]
    147
        pub fn new(key_client: &KeyClient) -> SharedAccessSignatureBuilder<No, No, No, No> {
  • azure_sdk_storage_core_rs 0.50.0/src/shared_access_signature.rs
    145
    impl SharedAccessSignature {
    146
        #[allow(clippy::new_ret_no_self)]
    147
        pub fn new(key_client: &KeyClient) -> SharedAccessSignatureBuilder<No, No, No, No> {
  • azure_storage_mirror 1.0.0/src/core/shared_access_signature.rs
    143
    impl SharedAccessSignature {
    144
        #[allow(clippy::new_ret_no_self)]
    145
        pub fn new<'a>(
  • beach_map 0.2.1/src/lib.rs
    162
        /// ```
    163
        #[allow(clippy::new_ret_no_self)]
    164
        #[inline]
  • binstalk 0.7.1/src/fetchers.rs
    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>
  • bluster 0.1.3/src/peripheral/bluez/adapter.rs
    40
        #[allow(clippy::new_ret_no_self)]
    41
        pub async fn new(connection: Arc<Connection>) -> Result<Self, Error> {
  • bluster 0.1.3/src/peripheral/bluez/mod.rs
    22
    impl Peripheral {
    23
        #[allow(clippy::new_ret_no_self)]
    24
        pub async fn new() -> Result<Self, Error> {
  • bluster 0.1.3/src/peripheral/corebluetooth/mod.rs
    19
    impl Peripheral {
    20
        #[allow(clippy::new_ret_no_self)]
    21
        pub async fn new() -> Result<Self, Error> {
  • buffered-reader 1.1.4/src/file_error.rs
    15
    #[allow(clippy::new_ret_no_self)]
    16
    impl FileError {
  • c-lexer-stable 0.1.4/src/state_machine.rs
    17
    impl<S: State> StateMachine<S> {
    18
        #[allow(clippy::new_ret_no_self)]
    19
        fn new() -> StateMachine<InputElementDiv> {
  • cacache 11.0.0/src/content/write.rs
    147
    impl AsyncWriter {
    148
        #[allow(clippy::new_ret_no_self)]
    149
        #[allow(clippy::needless_lifetimes)]
  • cached 0.42.0/src/stores/redis.rs
    213
    {
    214
        #[allow(clippy::new_ret_no_self)]
    215
        /// Initialize a `RedisCacheBuilder`
    501
        {
    502
            #[allow(clippy::new_ret_no_self)]
    503
            /// Initialize an `AsyncRedisCacheBuilder`
  • cachepot 0.1.0-rc.1/src/compiler/compiler.rs
    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> {
  • cannyls 0.10.0/src/block/mod.rs
    60
        /// ```
    61
        #[allow(clippy::new_ret_no_self)]
    62
        pub fn new(block_size: u16) -> Result<Self> {
  • cannyls 0.10.0/src/device/command.rs
    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(
  • cannyls 0.10.0/src/lump.rs
    142
        /// データのサイズが`MAX_SIZE`を超えている場合は、`ErrorKind::InvalidInput`エラーが返される.
    143
        #[allow(clippy::new_ret_no_self)]
    144
        pub fn new(data: Vec<u8>) -> Result<Self> {
  • cannyls 0.10.0/src/storage/journal/ring_buffer.rs
    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> {
  • canonical-path 2.0.2/src/lib.rs
    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>
  • capstone 0.11.0/src/capstone.rs
    109
        /// ```
    110
        #[allow(clippy::new_ret_no_self)]
    111
        pub fn new() -> CapstoneBuilder {
  • cast_trait_object 0.1.3/src/lib.rs
    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> {
  • centerdevice 0.5.1/src/lib.rs
    78
    impl Client {
    79
        #[allow(clippy::new_ret_no_self)]
    80
        pub fn new<'a>(
  • cge 0.1.1/src/encoding/mod.rs
    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(
  • ckb-sentry-core 0.21.0/src/test.rs
    54
        /// Creates a new test transport.
    55
        #[allow(clippy::new_ret_no_self)]
    56
        pub fn new() -> Arc<TestTransport> {
  • cmder 1.0.0-beta-1/src/core/program.rs
    25
    impl Program {
    26
        #[allow(clippy::new_ret_no_self)]
    27
        pub fn new() -> Command<'static> {
  • conec 0.2.0/src/coord/tls.rs
    19
    impl ConecClientCertVerifier {
    20
        #[allow(clippy::new_ret_no_self)]
    21
        pub fn new(client_ca: Option<Vec<u8>>) -> Arc<dyn ClientCertVerifier> {
  • const_format_proc_macros 0.2.29/src/utils.rs
    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> {
  • crev-data 0.23.2/src/id.rs
    206
    impl UnlockedId {
    207
        #[allow(clippy::new_ret_no_self)]
    208
        pub fn new(url: Option<Url>, sec_key: Vec<u8>) -> Result<Self, IdError> {
  • crev-lib 0.23.2/src/local.rs
    108
    impl Local {
    109
        #[allow(clippy::new_ret_no_self)]
    110
        fn new() -> Result<Self> {
  • crev-lib 0.23.2/src/repo/mod.rs
    88
        #[allow(clippy::new_ret_no_self)]
    89
        fn new(root_dir: &Path) -> Result<Self> {
  • d3-core 0.1.3/src/scheduler/executor.rs
    36
        // expose the factory as a trait object.
    37
        #[allow(clippy::new_ret_no_self)]
    38
        pub fn new() -> ExecutorFactoryObj {
  • d3-core 0.1.3/src/scheduler/overwatch.rs
    11
    impl SystemMonitorFactory {
    12
        #[allow(clippy::new_ret_no_self)]
    13
        pub fn new() -> MonitorFactoryObj {
  • dbs-arch 0.2.1/src/aarch64/gic/mod.rs
    178
        #[allow(clippy::new_ret_no_self)]
    179
        /// Method to initialize the GIC device
  • deep-unpack 0.1.2/src/formats/kinds.rs
    47
        // create a new archive trait
    48
        #[allow(clippy::new_ret_no_self)]
    49
        #[must_use]
  • deep-unpack 0.1.2/src/unpack.rs
    48
        #[must_use]
    49
        #[allow(clippy::new_ret_no_self)]
    50
        pub fn new() -> DeepWalkBuilder {
  • delay_times 0.2.0/src/lib.rs
    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 {
  • den 0.3.0/src/lib.rs
    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 {
  • dep-obj 0.38.4/examples/item_obj.rs
    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 {
  • diesel 2.0.3/src/pg/connection/raw.rs
    199
    impl RawResult {
    200
        #[allow(clippy::new_ret_no_self)]
    201
        fn new(ptr: *mut PGresult, conn: &RawConnection) -> QueryResult<Self> {
  • diesel 2.0.3/src/pg/connection/result.rs
    26
    impl PgResult {
    27
        #[allow(clippy::new_ret_no_self)]
    28
        pub(super) fn new(internal_result: RawResult, conn: &RawConnection) -> QueryResult<Self> {
  • disrustor 0.3.0/src/dsl.rs
    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>
  • dmenv 0.20.1/src/python_info.rs
    14
    impl PythonInfo {
    15
        #[allow(clippy::new_ret_no_self)]
    16
        pub fn new(python: &Option<String>) -> Result<Self, Error> {
  • dnp3 1.3.0-rc3/src/tcp/tls/outstation.rs
    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> {
  • docker-puzzles 0.1.3/src/config.rs
    9
    impl Config {
    10
        #[allow(clippy::new_ret_no_self)]
    11
        pub fn new(args: &[String]) -> Result<Self, Box<dyn Error>> {
  • docket 0.6.1/src/docket.rs
    74
        /// directory will be used for documentation.
    75
        #[allow(clippy::new_ret_no_self)]
    76
        pub fn new(doc_path: &Path) -> Result<Self> {
  • dungen_minion_rooms 0.3.2/src/sparse_map.rs
    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."]
  • easy-ml 1.8.2/src/matrices/slices.rs
    151
         */
    152
        #[allow(clippy::new_ret_no_self)]
    153
        pub fn new() -> EmptySlice2DBuilder {
  • ecli 0.2.0/src/screen/menus/choice.rs
    9
    impl ChoiceScreen {
    10
        #[allow(clippy::new_ret_no_self)]
    11
        pub fn new(menu: ChoiceMenu) -> Result<Box<dyn Screen>> {
  • ecrs 0.1.0-beta.3/src/ga/builder.rs
    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>
  • egobox-moe 0.7.1/src/parameters.rs
    195
        /// * kpls_dim: `None`
    196
        #[allow(clippy::new_ret_no_self)]
    197
        pub fn new() -> MoeParams<F, Xoshiro256Plus> {
  • elasticsearch-dsl 0.4.11/src/search/highlight/highlighter.rs
    266
        /// Creates a new instance of [DefaultHighlighter](DefaultHighlighter)
    267
        #[allow(clippy::new_ret_no_self)]
    268
        pub fn new() -> DefaultHighlighter {
  • elfo-logger 0.1.8/src/actor.rs
    39
        // TODO: rename it?
    40
        #[allow(clippy::new_ret_no_self)]
    41
        pub(crate) fn new(shared: Arc<Shared>) -> Schema {
  • ellipsis-client 0.1.13/src/banks_client.rs
    54
    impl BanksClient {
    55
        #[allow(clippy::new_ret_no_self)]
    56
        pub fn new<C>(
  • embedded-time 0.12.1/src/timer.rs
    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> {
  • encoding-next 0.3.0/src/codec/ascii.rs
    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> {
  • encoding-next 0.3.0/src/codec/error.rs
    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> {
  • encoding-next 0.3.0/src/codec/japanese.rs
    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> {
  • encoding-next 0.3.0/src/codec/korean.rs
    46
    impl Windows949Encoder {
    47
        #[allow(clippy::new_ret_no_self)]
    48
        pub fn new() -> Box<dyn RawEncoder> {
  • encoding-next-types 0.2.0/examples/rot13.rs
    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> {
  • enrgy 0.2.2/src/http/response.rs
    17
    impl HttpResponse {
    18
        #[allow(clippy::new_ret_no_self)]
    19
        pub fn new(status: StatusCode) -> HttpResponseBuilder {
  • ensc-testsuite 0.1.6/src/engine/plan/plan.rs
    23
    impl Plan {
    24
        #[allow(clippy::new_ret_no_self)]
    25
        pub fn new() -> PlanRc {
  • eternal 0.3.2/src/http/client/connector.rs
    64
    impl Connector<(), ()> {
    65
        #[allow(clippy::new_ret_no_self, clippy::let_unit_value)]
    66
        pub fn new() -> Connector<
  • exa 0.10.1/src/theme/mod.rs
    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 }
  • fabruic 0.0.1-dev-1/src/quic/task.rs
    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>
  • failsafe 1.2.0/src/config.rs
    14
        /// Creates a new circuit breaker's default configuration.
    15
        #[allow(clippy::new_ret_no_self)]
    16
        pub fn new() -> Config<
  • fantoccini-stable 0.7.2/src/lib.rs
    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(
  • feroxfuzz 1.0.0-rc.8/src/corpora/directory.rs
    179
        #[inline]
    180
        #[allow(clippy::new_ret_no_self)]
    181
        pub const fn new() -> DirCorpusBuilder<NoItems, NoName> {
  • feroxfuzz 1.0.0-rc.8/src/corpora/http_methods.rs
    139
        #[must_use]
    140
        #[allow(clippy::new_ret_no_self)]
    141
        pub const fn new() -> HttpMethodsBuilder<NoItems, NoName> {
  • feroxfuzz 1.0.0-rc.8/src/corpora/range.rs
    76
        #[must_use]
    77
        #[allow(clippy::new_ret_no_self)]
    78
        pub const fn new() -> RangeBuilder<NoItems, NoName> {
  • feroxfuzz 1.0.0-rc.8/src/corpora/wordlist.rs
    186
        #[must_use]
    187
        #[allow(clippy::new_ret_no_self)]
    188
        pub const fn new() -> WordlistBuilder<NoItems, NoName, NotUnique> {
  • feroxfuzz 1.0.0-rc.8/src/fuzzers/async_fuzzer.rs
    117
        #[allow(clippy::type_complexity)]
    118
        #[allow(clippy::new_ret_no_self)]
    119
        #[must_use]
  • feroxfuzz 1.0.0-rc.8/src/fuzzers/blocking_fuzzer.rs
    328
        #[allow(clippy::type_complexity)]
    329
        #[allow(clippy::new_ret_no_self)]
    330
        #[must_use]
  • fez 0.8.1/src/rpm/headers/types.rs
    189
    impl RPMFileOptions {
    190
        #[allow(clippy::new_ret_no_self)]
    191
        pub fn new<T: Into<String>>(dest: T) -> RPMFileOptionsBuilder {
  • flac-bound 0.3.0/src/encoder/encoder.rs
    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> {
  • flatdata 0.5.3/src/memstorage.rs
    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> {
  • fleetfs_raft 0.6.0/src/raft.rs
    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")]
  • fleetfs_raft 0.6.0/src/raw_node.rs
    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> {
  • fluvio-cluster 0.7.1/src/delete.rs
    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 {
  • forceps 0.3.2/src/cache.rs
    94
        #[inline]
    95
        #[allow(clippy::new_ret_no_self)]
    96
        pub fn new<P: AsRef<path::Path>>(path: P) -> crate::CacheBuilder {
  • fuel-pest 3.0.4/src/parser_state.rs
    119
        /// ```
    120
        #[allow(clippy::new_ret_no_self)]
    121
        pub fn new(input: Arc<str>) -> Box<Self> {
  • fuel-pest 3.0.4/src/position.rs
    52
        /// ```
    53
        #[allow(clippy::new_ret_no_self)]
    54
        pub fn new(input: Arc<str>, pos: usize) -> Option<Position> {
  • fuel-pest 3.0.4/src/span.rs
    61
        /// ```
    62
        #[allow(clippy::new_ret_no_self)]
    63
        pub fn new(input: Arc<str>, start: usize, end: usize) -> Option<Span> {
  • futures-retry 0.6.0/src/future.rs
    35
        #[allow(clippy::new_ret_no_self)]
    36
        fn new(&mut self) -> F {
  • futuresdr 0.0.27/examples/ctrlport-demo.rs
    31
    impl CtrlPortDemo {
    32
        #[allow(clippy::new_ret_no_self)]
    33
        pub fn new() -> Block {
  • futuresdr 0.0.27/examples/soapy.rs
    51
    impl ComplexToMag {
    52
        #[allow(clippy::new_ret_no_self)]
    53
        pub fn new() -> Block {
  • futuresdr 0.0.27/src/blocks/audio/audio_sink.rs
    37
    impl AudioSink {
    38
        #[allow(clippy::new_ret_no_self)]
    39
        pub fn new(sample_rate: u32, channels: u16) -> Block {
  • futuresdr 0.0.27/src/blocks/audio/audio_source.rs
    33
    impl AudioSource {
    34
        #[allow(clippy::new_ret_no_self)]
    35
        pub fn new(sample_rate: u32, channels: u16) -> Block {
  • futuresdr 0.0.27/src/blocks/audio/file_source.rs
    22
    impl FileSource {
    23
        #[allow(clippy::new_ret_no_self)]
    24
        pub fn new(file: &str) -> Block {
  • futuresdr 0.0.27/src/blocks/lttng/null_sink.rs
    24
    impl<T: Send + 'static> NullSink<T> {
    25
        #[allow(clippy::new_ret_no_self)]
    26
        pub fn new(probe_granularity: u64) -> Block {
  • futuresdr 0.0.27/src/blocks/lttng/null_source.rs
    25
    impl<T: Send + 'static> NullSource<T> {
    26
        #[allow(clippy::new_ret_no_self)]
    27
        pub fn new(probe_granularity: u64) -> Block {
  • futuresdr 0.0.27/src/blocks/wasm_freq.rs
    22
    impl WasmFreq {
    23
        #[allow(clippy::new_ret_no_self)]
    24
        pub fn new() -> Block {
  • futuresdr 0.0.27/src/blocks/wasm_sdr.rs
    48
    impl WasmSdr {
    49
        #[allow(clippy::new_ret_no_self)]
    50
        pub fn new() -> Block {
  • fvm_ipld_kamt 0.2.0/tests/kamt_tests.rs
    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>
  • gcemeta 0.2.3/src/lib.rs
    162
    #[allow(clippy::new_ret_no_self)]
    163
    impl Client<(), Body> {
  • gemachain-banks-client 1.8.2/src/lib.rs
    43
    impl BanksClient {
    44
        #[allow(clippy::new_ret_no_self)]
    45
        pub fn new<C>(
  • gemachain-rpc 1.8.0/src/transaction_status_service.rs
    28
    impl TransactionStatusService {
    29
        #[allow(clippy::new_ret_no_self)]
    30
        pub fn new(
  • ggez 0.9.0-rc0/examples/logging.rs
    68
    impl App {
    69
        #[allow(clippy::new_ret_no_self, clippy::unnecessary_wraps)]
    70
        /// Creates an instance, takes ownership of passed `FileLogger`.
  • ghost-cell 0.2.3/src/ghost_cell.rs
    45
        /// ```
    46
        #[allow(clippy::new_ret_no_self)]
    47
        pub fn new<R, F>(fun: F) -> R
  • gimli 0.27.1/src/write/unit.rs
    431
        /// Panics if `parent` is invalid.
    432
        #[allow(clippy::new_ret_no_self)]
    433
        fn new(
  • gio 0.16.7/src/initable.rs
    16
        /// `Initable::init` failed.
    17
        #[allow(clippy::new_ret_no_self)]
    18
        #[track_caller]
  • gio 0.16.7/src/lib.rs
    104
    #[allow(clippy::wrong_self_convention)]
    105
    #[allow(clippy::new_ret_no_self)]
    106
    #[allow(unused_imports)]
  • gio 0.16.7/src/simple_proxy_resolver.rs
    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 {
  • glib 0.16.7/src/main_context_futures.rs
    158
    impl TaskSource {
    159
        #[allow(clippy::new_ret_no_self)]
    160
        // checker-ignore-item
  • glib 0.16.7/src/object.rs
    1484
        /// property values of the wrong type are provided.
    1485
        #[allow(clippy::new_ret_no_self)]
    1486
        #[track_caller]
  • glib 0.16.7/src/param_spec.rs
    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")]
  • glommio 0.8.0/src/channels/local_channel.rs
    400
    impl<T> LocalChannel<T> {
    401
        #[allow(clippy::new_ret_no_self)]
    402
        fn new(capacity: ChannelCapacity) -> (LocalSender<T>, LocalReceiver<T>) {
  • glutin_tao 0.30.1/src/api/egl/mod.rs
    357
        /// To finish the process, you must call [`ContextPrototype::finish()`].
    358
        #[allow(clippy::new_ret_no_self)]
    359
        pub fn new<'a, F>(
  • glutin_tao 0.30.1/src/api/glx/mod.rs
    79
        // transparent is [`None`] if window is raw.
    80
        #[allow(clippy::new_ret_no_self)]
    81
        pub fn new<'a>(
  • good-web-game 0.6.0/src/graphics/shader.rs
    164
        #[allow(clippy::new_ret_no_self)]
    165
        /// Create a new `Shader` given source files, constants and a name.
  • graph_safe_compare 0.2.1/src/generic/equiv_classes.rs
    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
  • gspell 0.6.0/src/lib.rs
    26
    #[allow(unused_imports)]
    27
    #[allow(clippy::new_ret_no_self)]
    28
    mod auto;
  • gstreamer 0.19.7/src/event.rs
    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 {
  • gstreamer 0.19.7/src/message.rs
    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 {
  • gstreamer-video 0.19.5/src/video_message.rs
    148
        #[doc(alias = "gst_navigation_message_new_event")]
    149
        #[allow(clippy::new_ret_no_self)]
    150
        pub fn new(event: gst::Event) -> gst::Message {
  • gtk4 0.5.5/src/param_spec_expression.rs
    33
    impl ParamSpecExpression {
    34
        #[allow(clippy::new_ret_no_self)]
    35
        #[doc(alias = "gtk_param_spec_expression")]
  • gui 0.6.0/src/ui.rs
    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)
  • harp 0.1.0/src/response/reader.rs
    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> {
  • hitbox-actix 0.1.1/src/actor.rs
    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> {
  • holochain_types 0.1.0/src/record.rs
    348
        /// Sign some content
    349
        #[allow(clippy::new_ret_no_self)]
    350
        async fn sign(
  • ht16k33 0.4.0/src/types/led_location.rs
    78
        /// ```
    79
        #[allow(clippy::new_ret_no_self)]
    80
        pub fn new(row: u8, common: u8) -> Result<Self, ValidationError> {
  • if-addrs 0.8.0/src/posix.rs
    37
    impl IfAddrs {
    38
        #[allow(unsafe_code, clippy::new_ret_no_self)]
    39
        pub fn new() -> io::Result<Self> {
  • if-addrs 0.8.0/src/sockaddr.rs
    32
    impl SockAddr {
    33
        #[allow(clippy::new_ret_no_self)]
    34
        fn new(sockaddr: *const sockaddr) -> Option<Self> {
  • imgui 0.10.0/src/widget/image.rs
    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 {
  • ip_network 0.4.1/src/ip_network.rs
    33
        /// ```
    34
        #[allow(clippy::new_ret_no_self)]
    35
        pub fn new<I: Into<IpAddr>>(network_address: I, netmask: u8) -> Result<Self, IpNetworkError> {
  • ip_network 0.4.1/src/ipv4_network.rs
    45
        /// ```
    46
        #[allow(clippy::new_ret_no_self)]
    47
        pub fn new(network_address: Ipv4Addr, netmask: u8) -> Result<Self, IpNetworkError> {
  • ip_network 0.4.1/src/ipv6_network.rs
    57
        /// ```
    58
        #[allow(clippy::new_ret_no_self)]
    59
        pub fn new(network_address: Ipv6Addr, netmask: u8) -> Result<Self, IpNetworkError> {
  • javelin 0.3.7/src/rtmp/client.rs
    30
    impl Client {
    31
        #[allow(clippy::new_ret_no_self)]
    32
        pub fn new(peer_id: u64, shared: Shared) -> Result<(Self, Vec<ServerSessionResult>)> {
  • javelin 0.3.7/src/rtmp/event.rs
    50
    impl Handler {
    51
        #[allow(clippy::new_ret_no_self)]
    52
        pub fn new(peer_id: u64, shared: Shared) -> Result<Self> {
  • jenkins_api 0.8.0/src/job/builder.rs
    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>
  • jmap-client 0.2.0/src/client.rs
    297
    impl Client {
    298
        #[allow(clippy::new_ret_no_self)]
    299
        pub fn new() -> ClientBuilder {
  • juniper-from-schema 0.5.2/src/lib.rs
    1495
    impl<'a, T, K> QueryTrail<'a, T, K> {
    1496
        #[allow(clippy::new_ret_no_self)]
    1497
        #[doc(hidden)]
  • kaiju-core 0.1.4/src/vm.rs
    265
    impl VmAssembly {
    266
        #[allow(clippy::new_ret_no_self)]
    267
        pub fn new(bytes: Vec<u8>) -> SimpleResult<Self> {
  • kaiju-vm-core 0.1.4/src/vm.rs
    123
    impl Vm {
    124
        #[allow(clippy::new_ret_no_self)]
    125
        #[inline]
  • kanata 1.2.0-prerelease-1/src/cfg/sexpr.rs
    136
    impl<'a> Lexer<'a> {
    137
        #[allow(clippy::new_ret_no_self)]
    138
        fn new(s: &str) -> impl Iterator<Item = Spanned<TokenRes>> + '_ {
  • kdbx4 0.5.1/src/database.rs
    33
    impl Database {
    34
        #[allow(clippy::new_ret_no_self)]
    35
        pub(super) fn new(cipher: StreamCipher, xml: Xml, bin: Binaries) -> KdbxResult<Database> {
  • kdbx4 0.5.1/src/keys.rs
    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>
  • keyvault-agent-azure-auth 0.1.0-alpha/src/lib.rs
    57
    impl dyn Authenticator {
    58
        #[allow(clippy::new_ret_no_self)]
    59
        pub fn new(cred: Credential) -> Box<dyn Authenticator + Send> {
  • kpgres 0.5.0/src/row.rs
    185
    impl SimpleQueryRow {
    186
        #[allow(clippy::new_ret_no_self)]
    187
        pub(crate) fn new(columns: Rc<[String]>, body: DataRowBody) -> Result<SimpleQueryRow, Error> {
  • kvm-ioctls 0.13.0/src/ioctls/system.rs
    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>
  • lair_keystore 0.2.3/src/store_sqlite.rs
    233
        /// Construct a new SqlPool instance.
    234
        #[allow(clippy::new_ret_no_self)]
    235
        pub fn new(
  • ldap3 0.11.1/src/controls_impl/assertion.rs
    18
        /// Create a new control instance with the specified filter.
    19
        #[allow(clippy::new_ret_no_self)]
    20
        pub fn new(filter: S) -> RawControl {
  • ldap3 0.11.1/src/controls_impl/matched_values.rs
    22
        /// Create a new control instance with the specified filter.
    23
        #[allow(clippy::new_ret_no_self)]
    24
        pub fn new(filter: S) -> RawControl {
  • ldap3 0.11.1/src/controls_impl/read_entry.rs
    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 {
  • legacylisten 0.2.0/src/audio.rs
    44
        // This is close enough to `Self`.
    45
        #[allow(clippy::new_ret_no_self)]
    46
        fn new() -> Box<dyn AudioHandler>
  • leo-type-inference 1.0.8/src/type_inference.rs
    36
        ///
    37
        #[allow(clippy::new_ret_no_self)]
    38
        pub fn new(program: &Program, symbol_table: SymbolTable) -> Result<(), TypeInferenceError> {
  • libmdbx 0.2.0/src/database.rs
    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> {
  • libpasta 0.1.2/src/primitives/argon2.rs
    62
            /// Creates a new Argon2i instance
    63
            #[allow(clippy::new_ret_no_self)]
    64
            pub fn new(passes: u32, lanes: u32, kib: u32) -> Primitive {
  • libpasta 0.1.2/src/primitives/bcrypt.rs
    61
            /// Construct a new `Bcrypt` parameter set.
    62
            #[allow(clippy::new_ret_no_self)]
    63
            pub fn new(cost: u32) -> Primitive {
  • libpasta 0.1.2/src/primitives/pbkdf2.rs
    28
            /// Create  a new PBKDF2 instance.
    29
            #[allow(clippy::new_ret_no_self)]
    30
            pub fn new(iterations: u32, algorithm: &'static pbkdf2::Algorithm) -> Primitive {
  • libpasta 0.1.2/src/primitives/scrypt.rs
    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 {
  • linfa-clustering 0.6.1/src/lib.rs
    25
    mod gaussian_mixture;
    26
    #[allow(clippy::new_ret_no_self)]
    27
    mod k_means;
  • linfa-trees 0.6.1/src/decision_trees/hyperparams.rs
    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> {
  • linkle 0.2.11/src/format/romfs.rs
    76
    impl RomFsDirEntCtx {
    77
        #[allow(clippy::new_ret_no_self)]
    78
        fn new(parent: Weak<RefCell<RomFsDirEntCtx>>, path: PathBuf) -> Rc<RefCell<RomFsDirEntCtx>> {
  • linkle 0.2.11/src/pki.rs
    594
    impl Keys {
    595
        #[allow(clippy::new_ret_no_self)]
    596
        fn new(
  • lmdb-rkv 0.14.0/src/environment.rs
    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 {
  • lnp-core 0.9.0-rc.1/src/extension.rs
    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>>
  • lottieconv 0.2.2/src/lib.rs
    121
    	/// Return a new converter builder.
    122
    	#[allow(clippy::new_ret_no_self)]
    123
    	#[must_use]
  • lsp-async-stub 0.6.0/src/lib.rs
    297
    impl<W: Clone> Server<W> {
    298
        #[allow(clippy::new_ret_no_self)]
    299
        pub fn new() -> ServerBuilder<W> {
  • madsim-tokio-postgres 0.2.0/src/row.rs
    205
    impl SimpleQueryRow {
    206
        #[allow(clippy::new_ret_no_self)]
    207
        pub(crate) fn new(
  • modtype 0.7.0/src/lib.rs
    1957
            #[allow(clippy::new_ret_no_self)]
    1958
            #[inline(always)]
  • monero-lmdb-rkv 0.1.0/src/environment.rs
    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 {
  • multiconst_proc_macros 0.2.2/src/utils.rs
    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> {
  • nativeshell 0.1.16/src/shell/context.rs
    125
    impl Context {
    126
        #[allow(clippy::new_ret_no_self)]
    127
        pub fn new(options: ContextOptions) -> Result<ContextRef> {
  • netatmo-rs 0.5.0/src/client.rs
    43
    impl<'a> NetatmoClient {
    44
        #[allow(clippy::new_ret_no_self)]
    45
        pub fn new(client_credentials: &'a ClientCredentials) -> UnauthenticatedClient<'a> {
  • ntex-amqp 0.7.0/src/client/connector.rs
    25
    impl<A> Connector<A> {
    26
        #[allow(clippy::new_ret_no_self)]
    27
        /// Create new amqp connector
  • ntex-mqtt 0.10.1/src/v3/client/connector.rs
    28
    {
    29
        #[allow(clippy::new_ret_no_self)]
    30
        /// Create new mqtt connector
  • ntex-mqtt 0.10.1/src/v5/client/connector.rs
    25
    {
    26
        #[allow(clippy::new_ret_no_self)]
    27
        /// Create new mqtt connector
  • ntex-redis 0.4.1/src/connector.rs
    19
    {
    20
        #[allow(clippy::new_ret_no_self)]
    21
        /// Create new redis connector
  • ntex-rt 0.4.7/src/system.rs
    49
        #[allow(clippy::new_ret_no_self)]
    50
        /// Create new system.
  • nvim-rs 0.5.0/src/neovim.rs
    88
    {
    89
      #[allow(clippy::new_ret_no_self)]
    90
      pub fn new<H, R>(
  • nydus-storage 0.6.0/src/meta/mod.rs
    1505
    impl BlobMetaChunk {
    1506
        #[allow(clippy::new_ret_no_self)]
    1507
        pub(crate) fn new(
  • ockam 0.79.0/src/protocols/stream/requests.rs
    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 {
  • ockam 0.79.0/src/protocols/stream/responses.rs
    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 {
  • ockam_core 0.73.0/src/routing/route.rs
    28
        ///
    29
        #[allow(clippy::new_ret_no_self)]
    30
        pub fn new() -> RouteBuilder<'static> {
  • ockam_executor 0.41.0/src/executor.rs
    254
    impl NodeWaker {
    255
        #[allow(clippy::new_ret_no_self)]
    256
        fn new(_task_id: TaskId) -> Waker {
  • opa 0.9.0/src/wasm/mod.rs
    208
        /// Create a new [`OpaBuilder`] instance.
    209
        #[allow(clippy::new_ret_no_self)]
    210
        #[must_use]
  • opencloudtiles 0.1.11/src/lib/container/traits.rs
    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 {
  • organix-derive 0.1.0/src/gen.rs
    49
        #[allow(clippy::new_ret_no_self)]
    50
        fn new(&self) -> TokenStream {
  • otter 1.2.1/src/global.rs
    347
      /// Returns `None` if a game with this name already exists
    348
      #[allow(clippy::new_ret_no_self)]
    349
      #[throws(MgmtError)]
  • otter 1.2.1/src/utils.rs
    161
    #[allow(clippy::new_ret_no_self)]
    162
    impl<T> OldNew<T> {
  • owlish 0.21.2/src/owl/iri.rs
    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 {
  • pangocairo 0.16.3/src/font_map.rs
    26
        #[allow(clippy::new_ret_no_self)]
    27
        #[doc(alias = "pango_cairo_font_map_new")]
  • pcarp 1.4.0/src/lib.rs
    85
        /// Create a new `Capture`.
    86
        #[allow(clippy::new_ret_no_self)]
    87
        pub fn new(rdr: R) -> Result<Capture<R>> {
  • pdfium-render 0.7.27/src/render_config.rs
    36
        #[doc(hidden)]
    37
        #[allow(clippy::new_ret_no_self)]
    38
        pub fn new() -> PdfRenderConfig {
  • pest_tmp 2.1.1/src/parser_state.rs
    113
        /// ```
    114
        #[allow(clippy::new_ret_no_self)]
    115
        pub fn new(input: &'i str) -> Box<Self> {
  • pest_tmp 2.1.1/src/position.rs
    51
        /// ```
    52
        #[allow(clippy::new_ret_no_self)]
    53
        pub fn new(input: &str, pos: usize) -> Option<Position> {
  • pest_tmp 2.1.1/src/span.rs
    55
        /// ```
    56
        #[allow(clippy::new_ret_no_self)]
    57
        pub fn new(input: &str, start: usize, end: usize) -> Option<Span> {
  • phie 0.2.0/src/emu/transitions.rs
    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) {
  • physx 0.16.0/src/geometry.rs
    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(
  • printpdf 0.5.3/src/pdf_document.rs
    50
        #[inline]
    51
        #[cfg_attr(feature = "cargo-clippy", allow(new_ret_no_self))]
    52
        pub fn new<S1, S2>(
  • protect 1.1.0/src/lib.rs
    47
    pub trait Permit<T> {
    48
        #[allow(clippy::new_ret_no_self)]
    49
        fn new(&mut self, value: T) -> Option<Protect<T>>;
  • pubnub-hyper 0.1.0/src/transport/hyper/mod.rs
    50
        #[must_use]
    51
        #[allow(clippy::new_ret_no_self)] // builder pattern should be detected
    52
        pub fn new() -> HyperBuilder {
  • pulsar 5.0.2/src/authentication.rs
    25
        impl TokenAuthentication {
    26
            #[allow(clippy::new_ret_no_self)]
    27
            #[cfg_attr(feature = "telemetry", tracing::instrument(skip_all))]
  • qt_ritual 0.0.0/src/doc_decoder.rs
    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> {
  • qt_ritual 0.0.0/src/fix_header_names.rs
    37
        #[allow(clippy::new_ret_no_self)]
    38
        fn new(headers_dir: &PathBuf) -> Result<HeaderNameMap> {
  • raft 0.6.0/src/raft.rs
    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")]
  • raft 0.6.0/src/raw_node.rs
    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> {
  • raftlog 0.6.0/src/replicated_log.rs
    49
        /// ノード名を変更して、新規ノード追加扱いにした方が安全である.
    50
        #[allow(clippy::new_ret_no_self)]
    51
        pub fn new(
  • random-access-disk 2.0.0/src/lib.rs
    24
      /// Create a new instance.
    25
      #[allow(clippy::new_ret_no_self)]
    26
      pub async fn open(
  • raw_sync 0.1.5/src/events/mod.rs
    56
        }
    57
        #[allow(clippy::new_ret_no_self)]
    58
        unsafe fn new(mem: *mut u8, auto_reset: bool) -> Result<(Box<dyn EventImpl>, usize)> {
  • raw_sync 0.1.5/src/events/unix.rs
    43
        #[allow(clippy::new_ret_no_self)]
    44
        unsafe fn new(mem: *mut u8, auto_reset: bool) -> Result<(Box<dyn EventImpl>, usize)> {
  • raw_sync 0.1.5/src/events/windows.rs
    32
        #[allow(clippy::new_ret_no_self)]
    33
        unsafe fn new(mem: *mut u8, auto_reset: bool) -> Result<(Box<dyn EventImpl>, usize)> {
  • raw_sync 0.1.5/src/locks/unix.rs
    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)> {
  • raw_sync 0.1.5/src/locks/windows.rs
    30
        #[allow(clippy::new_ret_no_self)]
    31
        unsafe fn new(mem: *mut u8, data: *mut u8) -> Result<(Box<dyn LockImpl>, usize)> {
  • rb-sys-build 0.9.58/src/cc.rs
    8
    impl Build {
    9
        #[allow(clippy::new_ret_no_self)]
    10
        pub fn new() -> cc_impl::Build {
  • rclrs 0.3.1/src/node.rs
    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> {
  • requestty-ui 0.5.0/src/input.rs
    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).
  • requiem-http 1.0.1/src/client/connector.rs
    64
    impl Connector<(), ()> {
    65
        #[allow(clippy::new_ret_no_self, clippy::let_unit_value)]
    66
        pub fn new() -> Connector<
  • requiem-rt 1.0.0/src/runtime.rs
    17
    impl Runtime {
    18
        #[allow(clippy::new_ret_no_self)]
    19
        /// Returns a new runtime initialized with default configuration values.
  • requiem-rt 1.0.0/src/system.rs
    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.
  • ringbuffer-spsc 0.1.9/src/lib.rs
    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.")]
  • ritual 0.0.0/src/workspace.rs
    39
    impl Workspace {
    40
        #[allow(clippy::new_ret_no_self)]
    41
        pub fn new(path: PathBuf) -> Result<Workspace> {
  • rkv 0.18.4/src/env.rs
    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>
  • rkv 0.18.4/src/store/keys.rs
    38
    {
    39
        #[allow(clippy::new_ret_no_self)]
    40
        pub fn new(k: &K) -> Result<Key<K>, DataError> {
  • rodbus 1.2.0-rc1/src/tcp/tls/server.rs
    157
    impl SelfSignedCertificateClientCertVerifier {
    158
        #[allow(clippy::new_ret_no_self)]
    159
        fn new(cert: rustls::Certificate) -> Arc<dyn rustls::server::ClientCertVerifier> {
  • rpm 0.9.0-alpha.1/src/rpm/headers/types.rs
    173
    impl RPMFileOptions {
    174
        #[allow(clippy::new_ret_no_self)]
    175
        pub fn new<T: Into<String>>(dest: T) -> RPMFileOptionsBuilder {
  • rquickjs-core 0.1.7/src/value/module.rs
    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>(
  • rraw 1.2.0/src/auth/code.rs
    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>>(
  • rraw 1.2.0/src/auth/password.rs
    43
        /// Creates a new Authenticator
    44
        #[allow(clippy::new_ret_no_self)]
    45
        pub fn new<S: Into<String>>(
  • rraw 1.2.0/src/auth/token.rs
    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>>(
  • rspc 0.1.2/src/router_builder.rs
    34
    #[allow(clippy::new_without_default, clippy::new_ret_no_self)]
    35
    impl<TCtx, TMeta> Router<TCtx, TMeta>
  • rtrb 0.2.3/src/lib.rs
    116
        /// ```
    117
        #[allow(clippy::new_ret_no_self)]
    118
        #[must_use]
  • rtrb-basedrop 0.1.2/src/lib.rs
    150
        /// ```
    151
        #[allow(clippy::new_ret_no_self)]
    152
        #[must_use]
  • ruma-common 0.10.5/src/identifiers/client_secret.rs
    23
        #[cfg(feature = "rand")]
    24
        #[allow(clippy::new_ret_no_self)]
    25
        pub fn new() -> OwnedClientSecret {
  • ruma-common 0.10.5/src/identifiers/device_id.rs
    36
        #[cfg(feature = "rand")]
    37
        #[allow(clippy::new_ret_no_self)]
    38
        pub fn new() -> OwnedDeviceId {
  • ruma-common 0.10.5/src/identifiers/event_id.rs
    49
        #[cfg(feature = "rand")]
    50
        #[allow(clippy::new_ret_no_self)]
    51
        pub fn new(server_name: &ServerName) -> OwnedEventId {
  • ruma-common 0.10.5/src/identifiers/room_id.rs
    30
        #[cfg(feature = "rand")]
    31
        #[allow(clippy::new_ret_no_self)]
    32
        pub fn new(server_name: &ServerName) -> OwnedRoomId {
  • ruma-common 0.10.5/src/identifiers/transaction_id.rs
    20
        #[cfg(feature = "rand")]
    21
        #[allow(clippy::new_ret_no_self)]
    22
        pub fn new() -> OwnedTransactionId {
  • ruma-common 0.10.5/src/identifiers/user_id.rs
    26
        #[cfg(feature = "rand")]
    27
        #[allow(clippy::new_ret_no_self)]
    28
        pub fn new(server_name: &ServerName) -> OwnedUserId {
  • ruma-common 0.10.5/src/identifiers/voip_id.rs
    22
        #[cfg(feature = "rand")]
    23
        #[allow(clippy::new_ret_no_self)]
    24
        pub fn new() -> OwnedVoipId {
  • rumqttd 0.13.0-alpha/src/link/local.rs
    75
        #[allow(clippy::new_ret_no_self)]
    76
        pub fn new(
  • ruspiro-gpio 0.4.3/src/pin.rs
    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> {
  • rustpython-vm 0.1.2/src/pyobject.rs
    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 {
  • rustpython-vm 0.1.2/src/stdlib/itertools.rs
    786
            #[pyslot]
    787
            #[allow(clippy::new_ret_no_self)]
    788
            fn tp_new(
  • rusty_pandas 0.0.2/src/series/mod.rs
    129
        #[allow(clippy::new_ret_no_self)]
    130
        fn new(array: &[T], name: Option<String>) -> Series<T, usize> {
  • rusty_qjs 0.0.1/src/context.rs
    69
      /// Create a new JSContext. use JS_NewContext internally.
    70
      #[allow(clippy::new_ret_no_self)]
    71
      pub fn new(rt: &mut JSRuntime) -> OwnedJSContext {
  • rusty_qjs 0.0.1/src/runtime.rs
    42
      /// use JS_NewJSRuntime internally.
    43
      #[allow(clippy::new_ret_no_self)]
    44
      pub fn new() -> OwnedJSRuntime {
  • rusty_v8 0.32.1/src/isolate.rs
    303
      /// V8::initialize() must have run prior to this.
    304
      #[allow(clippy::new_ret_no_self)]
    305
      pub fn new(params: CreateParams) -> OwnedIsolate {
  • rusty_v8 0.32.1/src/scope.rs
    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 {
  • rusty_v8_m 0.4.6/src/isolate.rs
    142
      /// V8::initialize() must have run prior to this.
    143
      #[allow(clippy::new_ret_no_self)]
    144
      pub fn new(params: CreateParams) -> OwnedIsolate {
  • rusty_v8_m 0.4.6/src/try_catch.rs
    73
      /// JavaScript try/catch blocks.
    74
      #[allow(clippy::new_ret_no_self)]
    75
      pub fn new(scope: &mut impl InIsolate) -> TryCatchScope<'tc> {
  • rusty_v8_protryon 3.10.4/src/isolate.rs
    169
      /// V8::initialize() must have run prior to this.
    170
      #[allow(clippy::new_ret_no_self)]
    171
      pub fn new(params: UniqueRef<CreateParams>) -> OwnedIsolate {
  • rusty_v8_protryon 3.10.4/src/try_catch.rs
    73
      /// JavaScript try/catch blocks.
    74
      #[allow(clippy::new_ret_no_self)]
    75
      pub fn new(scope: &mut impl InIsolate) -> TryCatchScope<'tc> {
  • s2n-quic-crypto 0.16.0/src/ghash/testing.rs
    17
        #[allow(clippy::new_ret_no_self)]
    18
        pub fn new(&self, key: [u8; 16]) -> Box<dyn GHash> {
  • safe-zk-token-sdk 1.14.3/src/encryption/auth_encryption.rs
    25
        #[cfg(not(target_os = "solana"))]
    26
        #[allow(clippy::new_ret_no_self)]
    27
        fn keygen<T: RngCore + CryptoRng>(rng: &mut T) -> AeKey {
  • safe-zk-token-sdk 1.14.3/src/encryption/elgamal.rs
    183
        #[cfg(not(target_os = "solana"))]
    184
        #[allow(clippy::new_ret_no_self)]
    185
        pub fn new_rand() -> Self {
  • safe-zk-token-sdk 1.14.3/src/encryption/pedersen.rs
    35
        #[cfg(not(target_os = "solana"))]
    36
        #[allow(clippy::new_ret_no_self)]
    37
        pub fn new<T: Into<Scalar>>(message: T) -> (PedersenCommitment, PedersenOpening) {
  • safecoin-banks-client 1.14.3/src/lib.rs
    47
    impl BanksClient {
    48
        #[allow(clippy::new_ret_no_self)]
    49
        pub fn new<C>(
  • sbz-switch 4.1.0/src/ctsndcr.rs
    194
        /// with it.
    195
        #[allow(clippy::new_ret_no_self)]
    196
        pub unsafe fn new<C>(callback: C) -> *mut Self
  • sbz-switch 4.1.0/src/soundcore/core.rs
    44
        }
    45
        #[allow(clippy::new_ret_no_self)]
    46
        fn new(clsid: &GUID, logger: Logger) -> Result<SoundCore, SoundCoreError> {
  • sccache 0.3.3/src/compiler/compiler.rs
    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> {
  • scipio 0.1.5-alpha/src/channels/local_channel.rs
    106
    impl<T> LocalChannel<T> {
    107
        #[allow(clippy::new_ret_no_self)]
    108
        fn new(capacity: ChannelCapacity) -> (LocalSender<T>, LocalReceiver<T>) {
  • scrappy-http 0.0.1/src/client/connector.rs
    64
    impl Connector<(), ()> {
    65
        #[allow(clippy::new_ret_no_self, clippy::let_unit_value)]
    66
        pub fn new() -> Connector<
  • scrappy-rt 0.0.1/src/runtime.rs
    17
    impl Runtime {
    18
        #[allow(clippy::new_ret_no_self)]
    19
        /// Returns a new runtime initialized with default configuration values.
  • scrappy-rt 0.0.1/src/system.rs
    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.
  • screen-13 0.8.0/src/driver/buffer.rs
    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 {
  • screen-13 0.8.0/src/driver/graphic.rs
    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 {
  • screen-13 0.8.0/src/driver/image.rs
    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 {
  • screen-13 0.8.0/src/driver/mod.rs
    811
        /// Specifies a default driver configuration.
    812
        #[allow(clippy::new_ret_no_self)]
    813
        pub fn new() -> DriverConfigBuilder {
  • screen-13 0.8.0/src/driver/ray_trace.rs
    395
        /// Specifies a ray trace pipeline.
    396
        #[allow(clippy::new_ret_no_self)]
    397
        pub fn new() -> RayTracePipelineInfoBuilder {
  • screen-13 0.8.0/src/driver/shader.rs
    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 {
  • screen-13 0.8.0/src/event_loop.rs
    50
        /// Specifies an event loop.
    51
        #[allow(clippy::new_ret_no_self)]
    52
        pub fn new() -> EventLoopBuilder {
  • sentry-core 0.29.2/src/test.rs
    54
        /// Creates a new test transport.
    55
        #[allow(clippy::new_ret_no_self)]
    56
        pub fn new() -> Arc<TestTransport> {
  • sequoia-openpgp 1.13.0/src/crypto/backend/nettle/symmetric.rs
    16
    #[allow(clippy::new_ret_no_self)]
    17
    impl<M> ModeWrapper<M>
  • sequoia-openpgp 1.13.0/src/serialize/stream/dash_escape.rs
    36
    #[allow(clippy::new_ret_no_self)]
    37
    impl<'a> DashEscapeFilter<'a, Cookie> {
  • sequoia-openpgp 1.13.0/src/serialize/stream/partial_body.rs
    55
    #[allow(clippy::new_ret_no_self)]
    56
    impl<'a> PartialBodyFilter<'a, Cookie> {
  • sequoia-openpgp 1.13.0/src/serialize/stream/trim_whitespace.rs
    36
    #[allow(clippy::new_ret_no_self)]
    37
    impl<'a> TrailingWSFilter<'a, Cookie> {
  • sequoia-openpgp 1.13.0/src/serialize/stream/writer/mod.rs
    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> {
  • sequoia-openpgp 1.13.0/src/serialize/stream/writer/writer_bzip2.rs
    15
    #[allow(clippy::new_ret_no_self)]
    16
    impl<'a> BZ<'a, Cookie> {
  • shipyard 0.6.2/src/public_transport.rs
    152
    pub trait ShipyardRwLock {
    153
        #[allow(clippy::new_ret_no_self)]
    154
        fn new() -> Box<dyn ShipyardRwLock + Send + Sync>
  • sim2h 0.0.52-alpha2/src/connection_mgr.rs
    254
        /// and a receiving channel for any incoming data
    255
        #[allow(clippy::new_ret_no_self)]
    256
        pub fn new() -> (ConnectionMgrHandle, ConnectionMgrEventRecv, ConnectionCount) {
  • sim2h 0.0.52-alpha2/src/sim2h_im_state.rs
    519
    impl Store {
    520
        #[allow(clippy::new_ret_no_self)]
    521
        #[allow(clippy::redundant_pattern_matching)]
  • skia-safe 0.58.0/src/core/canvas.rs
    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>(
  • slice-dst 1.5.1/src/provided_types.rs
    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.
  • slog-logfmt 0.1.0/src/lib.rs
    75
    impl<W: io::Write> Logfmt<W> {
    76
        #[allow(clippy::new_ret_no_self)]
    77
        pub fn new(io: W) -> LogfmtBuilder<W> {
  • slog-mozlog-json 0.1.0/src/drain.rs
    172
        /// Build custom `Json` `Drain`
    173
        #[cfg_attr(feature = "cargo-clippy", allow(new_ret_no_self))]
    174
        pub fn new(io: W) -> MozLogJsonBuilder<W> {
  • slog-term 2.9.0/src/lib.rs
    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 {
  • solana 0.18.0-pre1/src/banking_stage.rs
    66
        /// Create the stage using `bank`. Exit when `verified_receiver` is dropped.
    67
        #[allow(clippy::new_ret_no_self)]
    68
        pub fn new(
  • solana 0.18.0-pre1/src/blockstream_service.rs
    25
    impl BlockstreamService {
    26
        #[allow(clippy::new_ret_no_self)]
    27
        pub fn new(
  • solana 0.18.0-pre1/src/fetch_stage.rs
    21
    impl FetchStage {
    22
        #[allow(clippy::new_ret_no_self)]
    23
        pub fn new(
  • solana 0.18.0-pre1/src/local_vote_signer_service.rs
    25
    impl LocalVoteSignerService {
    26
        #[allow(clippy::new_ret_no_self)]
    27
        pub fn new(port_range: PortRange) -> (Self, SocketAddr) {
  • solana 0.18.0-pre1/src/replay_stage.rs
    77
        #[allow(
    78
            clippy::new_ret_no_self,
    79
            clippy::too_many_arguments,
  • solana 0.18.0-pre1/src/replicator.rs
    200
        /// * `keypair` - Keypair for this replicator
    201
        #[allow(clippy::new_ret_no_self)]
    202
        pub fn new(
  • solana 0.18.0-pre1/src/retransmit_stage.rs
    115
    impl RetransmitStage {
    116
        #[allow(clippy::new_ret_no_self)]
    117
        #[allow(clippy::too_many_arguments)]
  • solana 0.18.0-pre1/src/sigverify_stage.rs
    36
    impl SigVerifyStage {
    37
        #[allow(clippy::new_ret_no_self)]
    38
        pub fn new(
  • solana 0.18.0-pre1/src/tvu.rs
    60
        /// * `blocktree` - the ledger itself
    61
        #[allow(clippy::new_ret_no_self, clippy::too_many_arguments)]
    62
        pub fn new<T>(
  • solana-archiver-lib 1.1.13/src/archiver.rs
    173
        /// * `keypair` - Keypair for this archiver
    174
        #[allow(clippy::new_ret_no_self)]
    175
        pub fn new(
  • solana-banks-client 1.14.13/src/lib.rs
    47
    impl BanksClient {
    48
        #[allow(clippy::new_ret_no_self)]
    49
        pub fn new<C>(
  • solana-core 1.14.13/src/banking_stage.rs
    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)]
  • solana-core 1.14.13/src/cache_block_meta_service.rs
    25
    impl CacheBlockMetaService {
    26
        #[allow(clippy::new_ret_no_self)]
    27
        pub fn new(
  • solana-core 1.14.13/src/cost_update_service.rs
    70
    impl CostUpdateService {
    71
        #[allow(clippy::new_ret_no_self)]
    72
        pub fn new(
  • solana-core 1.14.13/src/fetch_stage.rs
    35
    impl FetchStage {
    36
        #[allow(clippy::new_ret_no_self)]
    37
        pub fn new(
  • solana-core 1.14.13/src/replay_stage.rs
    377
    impl ReplayStage {
    378
        #[allow(clippy::new_ret_no_self, clippy::too_many_arguments)]
    379
        pub fn new(
  • solana-core 1.14.13/src/rewards_recorder_service.rs
    24
    impl RewardsRecorderService {
    25
        #[allow(clippy::new_ret_no_self)]
    26
        pub fn new(
  • solana-core 1.14.13/src/sample_performance_service.rs
    26
    impl SamplePerformanceService {
    27
        #[allow(clippy::new_ret_no_self)]
    28
        pub fn new(
  • solana-core 1.14.13/src/sigverify_stage.rs
    235
    impl SigVerifyStage {
    236
        #[allow(clippy::new_ret_no_self)]
    237
        pub fn new<T: SigVerifier + 'static + Send + Clone>(
  • solana-core 1.14.13/src/tvu.rs
    95
        /// * `blockstore` - the ledger itself
    96
        #[allow(clippy::new_ret_no_self, clippy::too_many_arguments)]
    97
        pub fn new(
  • solana-rpc 1.14.13/src/transaction_status_service.rs
    27
    impl TransactionStatusService {
    28
        #[allow(clippy::new_ret_no_self)]
    29
        pub fn new(
  • solana-test-client 0.1.0/src/banks_client.rs
    54
    impl BanksClient {
    55
        #[allow(clippy::new_ret_no_self)]
    56
        pub fn new<C>(
  • solana-zk-token-sdk 1.14.13/src/encryption/auth_encryption.rs
    28
        #[cfg(not(target_os = "solana"))]
    29
        #[allow(clippy::new_ret_no_self)]
    30
        fn keygen<T: RngCore + CryptoRng>(rng: &mut T) -> AeKey {
  • solana-zk-token-sdk 1.14.13/src/encryption/elgamal.rs
    179
        #[cfg(not(target_os = "solana"))]
    180
        #[allow(clippy::new_ret_no_self)]
    181
        pub fn new_rand() -> Self {
  • solana-zk-token-sdk 1.14.13/src/encryption/pedersen.rs
    35
        #[cfg(not(target_os = "solana"))]
    36
        #[allow(clippy::new_ret_no_self)]
    37
        pub fn new<T: Into<Scalar>>(amount: T) -> (PedersenCommitment, PedersenOpening) {
  • spirit 0.4.21/src/spirit.rs
    179
        /// there.
    180
        #[allow(clippy::new_ret_no_self)]
    181
        pub fn new() -> Builder<O, C>
  • spl-zk-token-sdk 0.1.0/src/encryption/auth_encryption.rs
    24
        #[cfg(not(target_arch = "bpf"))]
    25
        #[allow(clippy::new_ret_no_self)]
    26
        fn keygen<T: RngCore + CryptoRng>(rng: &mut T) -> AeKey {
  • spl-zk-token-sdk 0.1.0/src/encryption/elgamal.rs
    175
        #[cfg(not(target_arch = "bpf"))]
    176
        #[allow(clippy::new_ret_no_self)]
    177
        pub fn default() -> Self {
  • spl-zk-token-sdk 0.1.0/src/encryption/pedersen.rs
    50
        #[cfg(not(target_arch = "bpf"))]
    51
        #[allow(clippy::new_ret_no_self)]
    52
        pub fn new<T: Into<Scalar>>(amount: T) -> (PedersenCommitment, PedersenOpening) {
  • sshish 0.1.1/src/lib.rs
    43
    impl Command {
    44
        #[allow(clippy::new_ret_no_self)]
    45
        pub fn new<S: AsRef<OsStr>>(program: S) -> PreCommand {
  • stele 0.2.1/src/lib.rs
    131
    impl<T> Stele<T> {
    132
        #[allow(clippy::new_ret_no_self)]
    133
        /// Creates a new Stele returns a [`WriteHandle`] and [`ReadHandle`]
  • stm32f1xx-hal 0.10.0/src/crc.rs
    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;
  • stm32f1xx-hal-bxcan 0.8.0/src/crc.rs
    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;
  • tendermint-machine 0.2.0/src/lib.rs
    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(
  • tflite 0.9.6/src/interpreter/builder.rs
    43
    {
    44
        #[allow(clippy::new_ret_no_self)]
    45
        pub fn new<M: Into<MaybeOwned<'a, FlatBufferModel>>>(model: M, resolver: Op) -> Result<Self> {
  • tiny-skia 0.8.2/src/shaders/linear_gradient.rs
    33
        /// - `transform` is not invertible
    34
        #[allow(clippy::new_ret_no_self)]
    35
        pub fn new(
  • tiny-skia 0.8.2/src/shaders/pattern.rs
    79
        /// `opacity` will be clamped to the 0..=1 range.
    80
        #[allow(clippy::new_ret_no_self)]
    81
        pub fn new(
  • tiny-skia 0.8.2/src/shaders/radial_gradient.rs
    62
        /// - `transform` is not invertible
    63
        #[allow(clippy::new_ret_no_self)]
    64
        pub fn new(
  • tokio-postgres 0.7.7/src/row.rs
    205
    impl SimpleQueryRow {
    206
        #[allow(clippy::new_ret_no_self)]
    207
        pub(crate) fn new(
  • tqdm-rs 0.1.1/src/lib.rs
    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> {
  • tracing-serde-subscriber 0.1.2/src/lib.rs
    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
  • tract-pulse 0.19.2/src/model.rs
    9
    #[allow(clippy::new_ret_no_self)]
    10
    pub trait PulsedModelExt {
  • tranquility 0.0.8/src/model/subreddit.rs
    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> {
  • trayicon 0.1.3/src/sys/windows/wintrayicon.rs
    80
    {
    81
        #[allow(clippy::new_ret_no_self)]
    82
        #[allow(clippy::too_many_arguments)]
  • triton-vm 0.14.0/src/proof_stream.rs
    25
    impl ProofStreamError {
    26
        #[allow(clippy::new_ret_no_self)]
    27
        pub fn new(message: &str) -> anyhow::Error {
  • trust-dns-client 0.22.0/src/client/async_client.rs
    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>(
  • trust-dns-client 0.22.0/src/client/client.rs
    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> {
  • trust-dns-client 0.22.0/src/https_client_connection.rs
    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(
  • trust-dns-proto 0.22.0/src/multicast/mdns_client_stream.rs
    54
        ///  handle which can be used to send messages into the stream.
    55
        #[allow(clippy::new_ret_no_self)]
    56
        pub fn new(
  • trust-dns-proto 0.22.0/src/tcp/tcp_client_stream.rs
    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(
  • trust-dns-proto 0.22.0/src/tcp/tcp_stream.rs
    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>(
  • trust-dns-proto 0.22.0/src/udp/udp_client_stream.rs
    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> {
  • trust-dns-proto 0.22.0/src/xfer/dns_multiplexer.rs
    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>(
  • ucum 0.1.0/src/special.rs
    27
    {
    28
        #[allow(clippy::new_ret_no_self)]
    29
        pub fn new() -> Box<dyn Converter<T>> {
  • ullage 0.1.0/src/compile.rs
    66
        ///  * `opts` - The compilation options
    67
        #[allow(clippy::new_ret_no_self)]
    68
        pub fn new(
  • ureq 2.6.2/src/error.rs
    364
        #[allow(clippy::wrong_self_convention)]
    365
        #[allow(clippy::new_ret_no_self)]
    366
        pub(crate) fn new(self) -> Error {
  • uucore 0.0.17/src/lib/mods/error.rs
    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> {
  • v8 0.62.0/src/isolate.rs
    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(
  • v8 0.62.0/src/scope.rs
    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 {
  • v8 0.62.0/src/snapshot.rs
    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(
  • varlink 11.0.1/src/lib.rs
    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>>> {
  • varlink 11.0.1/src/server.rs
    92
    impl Listener {
    93
        #[allow(clippy::new_ret_no_self)]
    94
        pub fn new<S: ?Sized + AsRef<str>>(address: &S) -> Result<Self> {
  • versatiles 0.1.12/src/lib/container/traits.rs
    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 {
  • vertigo 0.1.1/src/driver_module/driver.rs
    109
    impl Driver {
    110
        #[allow(clippy::new_ret_no_self)]
    111
        pub fn new(api: ApiImport) -> Driver {
  • vertigo-browserdriver 0.1.0-beta.3/src/driver_browser.rs
    181
    impl DriverBrowser {
    182
        #[allow(clippy::new_ret_no_self)]
    183
        fn new(api: ApiImport) -> (Rc<DriverBrowserInner>, Driver) {
  • video_ludo 1.0.0/src/stream_reader/mod.rs
    175
        /// Creates a new `StreamBuffer`
    176
        #[allow(clippy::new_ret_no_self)]
    177
        pub fn new<T, F>(
  • vmcircbuffer 0.0.9/examples/sdr.rs
    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>
  • vmcircbuffer 0.0.9/src/asynchronous.rs
    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> {
  • vmcircbuffer 0.0.9/src/nonblocking.rs
    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> {
  • vmcircbuffer 0.0.9/src/sync.rs
    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> {
  • vmm-sys-util 0.11.1/src/linux/aio.rs
    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> {
  • waffles-solana-zk-token-sdk 1.15.0/src/encryption/auth_encryption.rs
    28
        #[cfg(not(target_os = "solana"))]
    29
        #[allow(clippy::new_ret_no_self)]
    30
        fn keygen<T: RngCore + CryptoRng>(rng: &mut T) -> AeKey {
  • waffles-solana-zk-token-sdk 1.15.0/src/encryption/elgamal.rs
    179
        #[cfg(not(target_os = "solana"))]
    180
        #[allow(clippy::new_ret_no_self)]
    181
        pub fn new_rand() -> Self {
  • waffles-solana-zk-token-sdk 1.15.0/src/encryption/pedersen.rs
    35
        #[cfg(not(target_os = "solana"))]
    36
        #[allow(clippy::new_ret_no_self)]
    37
        pub fn new<T: Into<Scalar>>(amount: T) -> (PedersenCommitment, PedersenOpening) {
  • war 0.2.0/src/darksiders1/code/vigil/gfc/io/compressedinputstream.rs
    10
    impl CompressedInputStream {
    11
        #[allow(clippy::new_ret_no_self)]
    12
        pub fn new<'r>(
  • warpgrapher 0.11.2/src/engine/mod.rs
    366
        /// ```
    367
        #[allow(clippy::new_ret_no_self)]
    368
        pub fn new(
  • wasmer-wasi 3.2.0-alpha.1/src/state/mod.rs
    1865
        /// [`WasiState`].
    1866
        #[allow(clippy::new_ret_no_self)]
    1867
        pub fn new(program_name: impl AsRef<str>) -> WasiStateBuilder {
  • wasmer-wasi-asml-fork 2.0.0/src/state/mod.rs
    1423
        /// [`WasiState`].
    1424
        #[allow(clippy::new_ret_no_self)]
    1425
        pub fn new(program_name: impl AsRef<str>) -> WasiStateBuilder {
  • wasmer-wasi-near 1.0.1/src/state/mod.rs
    1547
        /// [`WasiState`].
    1548
        #[allow(clippy::new_ret_no_self)]
    1549
        pub fn new(program_name: impl AsRef<str>) -> WasiStateBuilder {
  • wasmtime-vfs-file 0.1.0/src/lib.rs
    72
    impl File {
    73
        #[allow(clippy::new_ret_no_self)]
    74
        pub fn new(parent: Arc<dyn Node>) -> Arc<dyn Node> {
  • weechat 0.4.0/src/lib.rs
    106
    impl LossyCString {
    107
        #[allow(clippy::new_ret_no_self)]
    108
        pub(crate) fn new<T: AsRef<str>>(t: T) -> CString {
  • window 0.5.0/src/opengl/mod.rs
    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>> {
  • windows 0.44.0/src/core/weak_ref_count.rs
    82
    impl TearOff {
    83
        #[allow(clippy::new_ret_no_self)]
    84
        unsafe fn new(object: *mut std::ffi::c_void, strong_count: u32) -> IWeakReferenceSource {
  • winpty-rs 0.3.11/src/pty/base.rs
    53
        /// * `pty`: The instantiated PTY struct.
    54
        #[allow(clippy::new_ret_no_self)]
    55
        fn new(args: &PTYArgs) -> Result<Box<dyn PTYImpl>, OsString>
  • wita 0.20.0/src/window.rs
    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]
  • wpilib 0.4.0/src/analog_input.rs
    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> {
  • wpilib 0.4.0/src/dio.rs
    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> {
  • wpilib 0.4.0/src/ds.rs
    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> {
  • wpilib 0.4.0/src/encoder.rs
    71
        /// initialization fails.
    72
        #[allow(clippy::new_ret_no_self)]
    73
        pub fn new(channel_a: i32, channel_b: i32, encoding: EncodingType) -> HalResult<Encoder> {
  • wpilib 0.4.0/src/pdp.rs
    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> {
  • wpilib 0.4.0/src/pneumatics.rs
    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> {
  • x11rb 0.11.1/src/cursor/mod.rs
    143
        /// the connection.
    144
        #[allow(clippy::new_ret_no_self)]
    145
        pub fn new<'a, 'b, C: Connection>(
  • xaskpass 2.5.2/src/backbuffer.rs
    81
    impl<'a> Backbuffer<'a> {
    82
        #[allow(clippy::new_ret_no_self)]
    83
        pub fn new(
  • xsk-rs 0.4.1/src/socket/mod.rs
    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)]
  • yubihsm 0.41.0/src/connector/http/client/response/reader.rs
    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> {
  • yuuang-test-napi 1.7.6/src/js_values/function.rs
    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]
  • zenoh 0.7.0-rc/src/session.rs
    787
        #[allow(clippy::new_ret_no_self)]
    788
        pub(super) fn new(config: Config) -> impl Resolve<ZResult<Session>> + Send {
  • actix-mqtt 0.2.3/src/lib.rs
    1
    #![allow(clippy::type_complexity, clippy::new_ret_no_self)]
    2
    //! MQTT v3.1 Server framework
  • anyhow 1.0.68/src/lib.rs
    226
        clippy::needless_doctest_main,
    227
        clippy::new_ret_no_self,
    228
        clippy::redundant_else,
  • bmp085-driver 0.1.4/src/lib.rs
    20
    #![deny(missing_docs)]
    21
    #![allow(clippy::trivially_copy_pass_by_ref, clippy::new_ret_no_self)]
  • bvm_filter 1.0.0/src/lib.rs
    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))]
  • caprice 0.3.3/src/caprice.rs
    107
    impl Caprice {
    108
        #![allow(clippy::new_ret_no_self)]
    109
        /// Creates a new `Caprice` builder object.
  • cargo-lipo 3.2.0/src/main.rs
    2
        clippy::needless_pass_by_value,
    3
        clippy::new_ret_no_self,
    4
        clippy::redundant_closure,
  • clutter-rs 0.1.2/src/lib.rs
    9
        clippy::upper_case_acronyms,
    10
        clippy::new_ret_no_self,
    11
        clippy::wrong_self_convention
  • constellation-rs 0.2.0-alpha.2/src/lib.rs
    29
    	clippy::module_name_repetitions,
    30
    	clippy::new_ret_no_self,
    31
    	clippy::type_complexity,
  • crayon 0.7.1/src/lib.rs
    26
    #![allow(clippy::new_ret_no_self)]
  • ddbug 0.3.0/src/lib.rs
    4
    // Calm down clippy.
    5
    #![allow(clippy::new_ret_no_self)]
    6
    #![allow(clippy::single_match)]
  • ddbug_parser 0.3.0/src/lib.rs
    22
    // Calm down clippy.
    23
    #![allow(clippy::new_ret_no_self)]
    24
    #![allow(clippy::single_match)]
  • dhall 0.12.0/src/lib.rs
    6
        clippy::needless_question_mark,
    7
        clippy::new_ret_no_self,
    8
        clippy::new_without_default,
  • doug 1.10.0/src/lib.rs
    1
    #![allow(clippy::new_ret_no_self)]
  • druid 0.8.2/src/lib.rs
    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+)
  • ekvsb 0.0.13/src/lib.rs
    1
    #![allow(clippy::new_ret_no_self)]
  • encoding_rs 0.8.31/src/lib.rs
    11
        feature = "cargo-clippy",
    12
        allow(doc_markdown, inline_always, new_ret_no_self)
    13
    )]
  • eyre 0.6.8/src/lib.rs
    357
        clippy::needless_doctest_main,
    358
        clippy::new_ret_no_self,
    359
        clippy::wrong_self_convention
  • feos-dft 0.4.0/src/lib.rs
    3
    #![allow(clippy::too_many_arguments)]
    4
    #![allow(clippy::new_ret_no_self)]
  • fil-rustacuda 0.1.3/src/lib.rs
    150
    // Allow clippy lints
    151
    #![allow(unknown_lints, clippy::new_ret_no_self)]
  • flattiverse_connector 36.1.1/src/lib.rs
    3
    #![allow(clippy::excessive_precision)]
    4
    #![allow(clippy::new_ret_no_self)]
    5
    #![allow(clippy::useless_let_if_seq)]
  • frugalos 1.2.0/src/lib.rs
    2
    #![warn(missing_docs)]
    3
    #![allow(clippy::new_ret_no_self)]
    4
    extern crate atomic_immut;
  • frugalos_config 1.2.0/src/lib.rs
    4
    #![warn(missing_docs)]
    5
    #![allow(clippy::new_ret_no_self)]
    6
    extern crate bytecodec;
  • frugalos_core 1.2.0/src/lib.rs
    1
    //! Frugal shared utilities.
    2
    #![allow(clippy::new_ret_no_self)]
    3
    extern crate rustracing;
  • frugalos_mds 1.2.0/src/lib.rs
    8
    #![warn(missing_docs)]
    9
    #![allow(clippy::new_ret_no_self)]
    10
    extern crate atomic_immut;
  • frugalos_raft 1.2.0/src/lib.rs
    4
    #![warn(missing_docs)]
    5
    #![allow(clippy::new_ret_no_self)]
    6
    extern crate adler32;
  • frugalos_segment 1.2.0/src/lib.rs
    4
    #![warn(missing_docs)]
    5
    #![allow(clippy::new_ret_no_self)]
    6
    extern crate adler32;
  • futuresdr 0.0.27/src/lib.rs
    1
    #![recursion_limit = "512"]
    2
    #![allow(clippy::new_ret_no_self)]
    3
    #![cfg_attr(not(RUSTC_IS_STABLE), feature(core_intrinsics))]
  • game-metrics-macro 0.0.4/src/lib.rs
    3
        clippy::must_use_candidate,
    4
        clippy::new_ret_no_self,
    5
        clippy::cast_precision_loss,
  • grass 0.12.2/src/lib.rs
    43
        clippy::manual_filter_map,
    44
        clippy::new_ret_no_self,
    45
        renamed_and_removed_lints,
  • grass_compiler 0.12.2/src/lib.rs
    43
        clippy::manual_filter_map,
    44
        clippy::new_ret_no_self,
    45
        renamed_and_removed_lints,
  • hbbft 0.1.1/src/lib.rs
    118
    // Some of our constructors return results.
    119
    #![allow(clippy::module_inception, clippy::new_ret_no_self)]
    120
    #![warn(missing_docs)]
  • hbbft 0.1.1/tests/net/mod.rs
    14
    // Some of our constructors return results.
    15
    #![allow(clippy::new_ret_no_self)]
  • hermit-sys 0.4.0/src/lib.rs
    1
    #![allow(clippy::large_enum_variant)]
    2
    #![allow(clippy::new_ret_no_self)]
  • iced_style_config 0.2.1/src/lib.rs
    74
        clippy::must_use_candidate,
    75
        clippy::new_ret_no_self,
    76
        clippy::wildcard_imports
  • in-toto 0.3.0/src/lib.rs
    6
        clippy::implicit_hasher,
    7
        clippy::new_ret_no_self,
    8
        clippy::op_ref,
  • ink_metadata 4.0.0-beta.1/src/specs.rs
    15
    #![allow(clippy::new_ret_no_self)]
  • kitsune_p2p_proxy 0.1.0/src/tx2.rs
    1
    #![allow(clippy::new_ret_no_self)]
    2
    #![allow(clippy::blocks_in_if_conditions)]
  • kitsune_p2p_transport_quic 0.1.0/src/tx2.rs
    1
    #![allow(clippy::new_ret_no_self)]
    2
    //! kitsune tx2 quic transport backend
  • kitsune_p2p_types 0.1.0/src/tx2/mem.rs
    1
    #![allow(clippy::new_ret_no_self)]
    2
    #![allow(clippy::never_loop)]
  • kitsune_p2p_types 0.1.0/src/tx2/tx2_pool_promote.rs
    1
    #![allow(clippy::new_ret_no_self)]
    2
    #![allow(clippy::manual_async_fn)]
  • lambda_runtime_client 0.2.2/src/lib.rs
    2
    #![deny(warnings)]
    3
    #![allow(clippy::new_ret_no_self)]
    4
    //! Rust client SDK for the AWS Lambda Runtime APIs. This crate defines
  • libxml 0.3.1/src/lib.rs
    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
  • livesplit-core 0.13.0/src/lib.rs
    14
        clippy::redundant_closure_call,
    15
        clippy::new_ret_no_self
    16
    )]
  • miette 5.5.0/src/eyreish/mod.rs
    3
        clippy::needless_doctest_main,
    4
        clippy::new_ret_no_self,
    5
        clippy::wrong_self_convention
  • moveit 0.5.1/src/lib.rs
    143
    // These clippy lints are somewhat at odds with our use of `new()`.
    144
    #![allow(clippy::new_ret_no_self, clippy::wrong_self_convention)]
  • ncursesw-win 0.6.3/src/gen/ispad.rs
    23
    #![allow(clippy::new_ret_no_self)]
  • ncursesw-win 0.6.3/src/gen/ncurseswwindow.rs
    23
    #![allow(clippy::new_ret_no_self)]
  • near-store 0.1.0-pre.1/src/trie/iterator.rs
    44
    impl<'a> TrieIterator<'a> {
    45
        #![allow(clippy::new_ret_no_self)]
    46
        /// Create a new iterator.
  • near-store 0.1.0-pre.1/src/trie/update.rs
    210
    impl<'a> TrieUpdateIterator<'a> {
    211
        #![allow(clippy::new_ret_no_self)]
    212
        pub fn new(
  • near-store-v01 2.2.0/src/trie/iterator.rs
    52
    impl<'a> TrieIterator<'a> {
    53
        #![allow(clippy::new_ret_no_self)]
    54
        /// Create a new iterator.
  • near-store-v01 2.2.0/src/trie/update.rs
    210
    impl<'a> TrieUpdateIterator<'a> {
    211
        #![allow(clippy::new_ret_no_self)]
    212
        pub fn new(
  • nimiq-messages 0.2.0/src/lib.rs
    1
    // TODO: Perhaps move constructors into Message
    2
    #![allow(clippy::new_ret_no_self)]
  • notnow 0.3.3/src/lib.rs
    55
      clippy::let_unit_value,
    56
      clippy::new_ret_no_self,
    57
      clippy::new_without_default,
  • ockam_executor 0.41.0/src/lib.rs
    15
    )]
    16
    #![allow(clippy::new_ret_no_self)]
    17
    #![cfg_attr(not(feature = "std"), no_std)]
  • openstack 0.4.2/src/lib.rs
    150
    #![allow(
    151
        clippy::new_ret_no_self,
    152
        clippy::should_implement_trait,
  • parsec 0.7.3/src/lib.rs
    155
        variant_size_differences,
    156
        clippy::new_ret_no_self
    157
    )]
  • patract-wasmi 0.9.1/src/lib.rs
    99
    #![allow(clippy::len_without_is_empty)]
    100
    #![allow(clippy::new_ret_no_self)]
  • plonky2 0.1.1/src/gates/mod.rs
    1
    // Gates have `new` methods that return `GateRef`s.
    2
    #![allow(clippy::new_ret_no_self)]
  • pro_metadata 3.0.0-rc2/src/specs.rs
    15
    #![allow(clippy::new_ret_no_self)]
  • prometheus 0.13.3/src/lib.rs
    119
        clippy::new_without_default,
    120
        clippy::new_ret_no_self
    121
    )]
  • prometheus-32bitfix 0.13.1/src/lib.rs
    119
        clippy::new_without_default,
    120
        clippy::new_ret_no_self
    121
    )]
  • qcheck 1.0.0/src/arbitrary.rs
    1
    #![allow(clippy::new_ret_no_self)]
    2
    #![allow(clippy::or_fun_call)]
  • quickcheck2 2.0.0/src/arbitrary.rs
    1
    #![allow(clippy::new_ret_no_self)]
    2
    #![allow(clippy::or_fun_call)]
  • riker 0.4.2/src/lib.rs
    4
    // #![deny(clippy::nursery)]
    5
    #![allow(clippy::new_ret_no_self)]
    6
    #![allow(clippy::large_enum_variant)]
  • rsget_lib 0.3.0/src/lib.rs
    1
    #![allow(clippy::new_ret_no_self)]
    2
    #![deny(rust_2018_idioms)]
  • rustacuda 0.1.3/src/lib.rs
    150
    // Allow clippy lints
    151
    #![allow(unknown_lints, clippy::new_ret_no_self)]
  • rustls 0.21.0-alpha.1/src/lib.rs
    285
        clippy::too_many_arguments,
    286
        clippy::new_ret_no_self,
    287
        clippy::ptr_arg,
  • rustracing 0.6.0/src/lib.rs
    49
    #![warn(missing_docs)]
    50
    #![allow(clippy::new_ret_no_self)]
    51
    #[macro_use]
  • starlark 0.8.0/src/lib.rs
    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
  • stronghold_engine 1.0.2/src/vault/types/transactions.rs
    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
  • tcp_typed 0.1.4/src/lib.rs
    33
    	clippy::indexing_slicing,
    34
    	clippy::new_ret_no_self,
    35
    	clippy::needless_pass_by_value
  • temporal-sdk-core 0.1.0-alpha.1/src/activity/activity_heartbeat_manager.rs
    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,
  • tokenizer-lib 1.4.0/src/lib.rs
    1
    //! Tokenization utilities for building parsers in Rust
    2
    #![allow(clippy::type_complexity, clippy::new_ret_no_self)]
  • tsproto-packets 0.1.0/src/packets.rs
    1
    #![allow(clippy::new_ret_no_self)]
    2
    use std::convert::TryInto;
  • tuf 0.3.0-beta9/src/lib.rs
    108
        clippy::let_unit_value,
    109
        clippy::new_ret_no_self,
    110
        clippy::op_ref,
  • ux-animate 0.1.5/src/lib.rs
    9
        clippy::upper_case_acronyms,
    10
        clippy::new_ret_no_self,
    11
        clippy::wrong_self_convention
  • ux-dx 0.2.1/src/lib.rs
    19
        clippy::manual_swap,
    20
        clippy::new_ret_no_self,
    21
        clippy::unnecessary_operation,
  • wasi-crypto 0.1.9/src/lib.rs
    4
        clippy::new_without_default,
    5
        clippy::new_ret_no_self,
    6
        clippy::unnecessary_wraps,
  • wasi-crypto-preview 0.1.1/src/lib.rs
    4
        clippy::new_without_default,
    5
        clippy::new_ret_no_self,
    6
        clippy::too_many_arguments
  • wasm-pack 0.10.3/src/lockfile.rs
    3
    #![allow(clippy::new_ret_no_self)]
  • wasm-pack 0.10.3/src/manifest/mod.rs
    3
    #![allow(
    4
        clippy::new_ret_no_self,
    5
        clippy::needless_pass_by_value,
  • wasmgdb_ddbug_parser 0.3.1/src/lib.rs
    24
    // Calm down clippy.
    25
    #![allow(clippy::new_ret_no_self)]
    26
    #![allow(clippy::single_match)]
  • wena 0.2.0/src/input/argument.rs
    7
    impl Argument {
    8
        #![allow(clippy::new_ret_no_self)]
    9
        pub fn new(name: &str) -> Arg {
  • xcb 1.2.0/src/lib.rs
    341
        #![allow(clippy::unit_arg)]
    342
        #![allow(clippy::new_ret_no_self)]
    343
        #![allow(clippy::too_many_arguments)]